CN108985360B - Hyperspectral classification method based on extended morphology and active learning - Google Patents
Hyperspectral classification method based on extended morphology and active learning Download PDFInfo
- Publication number
- CN108985360B CN108985360B CN201810698251.XA CN201810698251A CN108985360B CN 108985360 B CN108985360 B CN 108985360B CN 201810698251 A CN201810698251 A CN 201810698251A CN 108985360 B CN108985360 B CN 108985360B
- Authority
- CN
- China
- Prior art keywords
- sample
- samples
- classification
- matrix
- spectral
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F18/2155—Generating training patterns; Bootstrap methods, e.g. bagging or boosting characterised by the incorporation of unlabelled data, e.g. multiple instance learning [MIL], semi-supervised techniques using expectation-maximisation [EM] or naïve labelling
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
- G06F18/2411—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on the proximity to a decision surface, e.g. support vector machines
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Image Analysis (AREA)
Abstract
本发明公开一种基于扩展形态学与主动学习的高光谱图像分类方法,解决现有技术不能充分挖掘高光谱图像空间信息,导致分类精度低的问题。其步骤为:1)输入高光谱图像数据;2)对数据降维,提取光谱特征,并通过形态学剖面变换,得到空间特征;3)融合空谱特征,划分训练与测试样本集;4)利用训练样本集进行SVM分类;5)主动学习循环,由MCLU准则和AP聚类选取样本标记,更新训练与测试样本集;6)利用新的训练样本集进行SVM分类,直到训练样本数量达到预设数量时停止,得到最终分类结果。本发明将多结构元素的形态学特征与主动学习相结合,充分利用空谱信息,在小样本前提下提高了分类精度。
The invention discloses a hyperspectral image classification method based on extended morphology and active learning, which solves the problem that the prior art cannot fully mine the spatial information of the hyperspectral image, resulting in low classification accuracy. The steps are: 1) input hyperspectral image data; 2) reduce dimensionality of the data, extract spectral features, and obtain spatial features through morphological profile transformation; 3) fuse spatial spectral features to divide training and test sample sets; 4) Use the training sample set for SVM classification; 5) Active learning loop, select sample labels by MCLU criteria and AP clustering, and update the training and testing sample sets; 6) Use the new training sample set for SVM classification until the number of training samples reaches the predetermined number. Stop when the number is set to get the final classification result. The invention combines the morphological features of multiple structural elements with active learning, makes full use of the spatial spectrum information, and improves the classification accuracy under the premise of small samples.
Description
技术领域technical field
本发明属于图像处理技术领域,更进一步涉及高光谱图像分类技术领域,具体为一种基于扩展形态学和主动学习的高光谱分类方法。用于在资源勘探、森林覆盖以及灾害监测中进行地物分类。The invention belongs to the technical field of image processing, and further relates to the technical field of hyperspectral image classification, in particular to a hyperspectral classification method based on extended morphology and active learning. It is used for classification of features in resource exploration, forest cover and disaster monitoring.
背景技术Background technique
高光谱传感器,即光谱仪,可以在连续的几十个或者数百个波段上对特定区域同时成像,所获得图像即为高光谱图像。由于高光谱成像涉及不同波段,所以高光谱图像可以获得丰富的光谱信息,其丰富的光谱信息为地物识别和目标检测创造了良好的条件。近几年,高光谱图像在矿物精细识别、植被类型的识别与分类、城市地物区分、探测危险环境因素实现灾害监测等方面得到了广泛的应用。由于高光谱数据的庞大和复杂性,仅仅靠人工对图像中的每个像元进行标注十分费时费力,因此,高光谱图像的分类技术就成为高光谱图像处理技术中十分重要的一环。A hyperspectral sensor, that is, a spectrometer, can simultaneously image a specific area in dozens or hundreds of consecutive bands, and the obtained image is a hyperspectral image. Since hyperspectral imaging involves different wavelength bands, hyperspectral images can obtain rich spectral information, which creates favorable conditions for object recognition and target detection. In recent years, hyperspectral images have been widely used in fine mineral identification, vegetation type identification and classification, urban feature distinction, detection of dangerous environmental factors and disaster monitoring. Due to the hugeness and complexity of hyperspectral data, it is very time-consuming and laborious to label each pixel in the image manually. Therefore, the classification technology of hyperspectral images has become a very important part of hyperspectral image processing technology.
S.Patra等人在其发表的论文“A Spectral-Spatial Multicriteria ActiveLearning Technique for Hyperspectral Image Classification”(IEEE Journal ofSelected Topics in Applied Earth Observations&Remote Sensing,2017)中提出了一种基于主动学习和遗传算法的高光谱图像分类方法。该方法步骤为:1.对光谱信息数据进行PCA降维;2.用两个结构元素尺寸对降维后的光谱信息数据进行形态学剖面变换,得到空间特征;3.将空间特征与光谱特征相结合;4.通过主动学习和遗传算法相结合,迭代进行支持向量机有监督分类。其利用两个尺度的结构元素提取图像的扩展形态学轮廓,然而单尺度或两个尺度的结构元素不能充分挖掘高光谱图像的空间信息,因此不能得到满意的分类精度;而且,使用遗传算法与主动学习相结合选取需要标记的样本,每代种群中的样本个体适应度计算花费的时间太长,将导致选取标记样本过慢。In their paper "A Spectral-Spatial Multicriteria ActiveLearning Technique for Hyperspectral Image Classification" (IEEE Journal of Selected Topics in Applied Earth Observations & Remote Sensing, 2017), S.Patra et al. proposed a hyperspectral method based on active learning and genetic algorithm. Image classification methods. The steps of the method are: 1. Perform PCA dimension reduction on the spectral information data; 2. Perform morphological profile transformation on the spectral information data after dimension reduction with two structuring element sizes to obtain spatial features; 3. Combine the spatial features with the spectral features 4. Through the combination of active learning and genetic algorithm, iteratively carry out SVM supervised classification. It uses two-scale structuring elements to extract the extended morphological contours of the image. However, single-scale or two-scale structuring elements cannot fully mine the spatial information of hyperspectral images, so a satisfactory classification accuracy cannot be obtained. The combination of active learning to select the samples that need to be marked will take too long to calculate the fitness of the samples in each generation of the population, which will lead to too slow to select the marked samples.
西安电子科技大学在其申请的专利文献“一种基于主动学习的高光谱图像分类方法”(申请号:CN 201410066856.9,申请公布号:CN 103839078 B)中公开了一种基于主动学习的高光谱图像分类方法。该方法的实施步骤是:1.提取光谱和空间特征,将其融合为一个特征向量;2.将所有样本随机划分为测试数据集与训练数据集,训练数据集被进一步随机划分为已标记数据集和未标记数据集;3.在已标记数据集上构造初始集成分类器;4.每一次迭代,根据新的信息量度量准则挑选出固定数目的最高信息量的未标记样本用于人工标记;5.利用最终得到的集成分类器进行预测。该分类方法的不足之在于,利用单个尺度的结构元素提取图像的扩展形态学轮廓,同样存在不能充分挖掘高光谱图像的空间信息的问题,因此不能得到满意的分类精度;而且,使用信息量度量准则根据信息量来选取需要标记的样本,其计算过程复杂、耗时较长,并需要大量标记样本。在现实生活中,遥感数据的标记工作需要专家人工操作或者进行实地勘察,成本相当高,因此,如何利用尽可能少的已标记样本来获得尽可能高的分类精度在遥感数据分类中非常重要。Xidian University disclosed a kind of hyperspectral image based on active learning in its patent document "A method of hyperspectral image classification based on active learning" (application number: CN 201410066856.9, application publication number: CN 103839078 B) Classification. The implementation steps of the method are: 1. Extract spectral and spatial features and fuse them into a feature vector; 2. Randomly divide all samples into test data sets and training data sets, and the training data sets are further randomly divided into labeled data 3. Construct an initial ensemble classifier on the labeled dataset; 4. At each iteration, select a fixed number of unlabeled samples with the highest information content for manual labeling according to the new information content metric 5. Use the final ensemble classifier to make predictions. The disadvantage of this classification method is that the use of single-scale structural elements to extract the extended morphological contour of the image also has the problem that the spatial information of the hyperspectral image cannot be fully exploited, so the satisfactory classification accuracy cannot be obtained; The criterion selects the samples to be marked according to the amount of information, and the calculation process is complex, time-consuming, and requires a large number of marked samples. In real life, the labeling of remote sensing data requires manual operation by experts or field surveys, and the cost is quite high. Therefore, how to use as few labeled samples as possible to obtain the highest possible classification accuracy is very important in remote sensing data classification.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于克服上述现有技术的不足,提出了一种基于扩展形态学和主动学习的高光谱分类方法。本发明将扩展的多结构元素形态学轮廓特征与主动学习框架相结合,通过扩展的多结构元素形态学轮廓特征对高光谱图像的空间信息进行充分挖掘,将空间特征与光谱特征相结合,充分利用空间信息与光谱信息,并结合主动学习的小样本特性进行分类;同时,将近邻传播聚类与主动学习相结合,实现在小样本的前提下获取高精度的分类结果。The purpose of the present invention is to overcome the above-mentioned shortcomings of the prior art, and propose a hyperspectral classification method based on extended morphology and active learning. The invention combines the extended multi-structural element morphological profile feature with an active learning framework, fully mines the spatial information of the hyperspectral image through the extended multi-structural element morphological profile feature, combines the spatial feature with the spectral feature, and fully Using spatial information and spectral information, combined with the small sample characteristics of active learning for classification; at the same time, the combination of neighbor propagation clustering and active learning can achieve high-precision classification results under the premise of small samples.
本发明实现上述目的步骤为:1)输入高光谱图像数据;2)对数据降维,提取光谱特征,并通过形态学剖面变换,得到空间特征;3)融合空谱特征,划分训练与测试样本集;4)利用训练样本集进行SVM分类;5)主动学习循环,由MCLU准则和AP聚类选取样本标记,更新训练与测试样本集;6)利用新的训练样本集进行SVM分类,直到训练样本数量达到预设数量时停止,得到最终分类结果。本发明将扩展的多结构元素形态学特征与主动学习相结合,并且在主动学习中将MCLU准则与近邻传播聚类算法相结合,充分挖掘高光谱图像的空间信息,在小样本前提下大幅度提高了分类精度。The steps of the present invention to achieve the above objects are: 1) input hyperspectral image data; 2) reduce the dimension of the data, extract spectral features, and obtain spatial features through morphological profile transformation; 3) fuse spatial spectral features to divide training and testing samples 4) Use the training sample set for SVM classification; 5) Active learning loop, select sample labels by MCLU criteria and AP clustering, and update the training and testing sample sets; 6) Use the new training sample set for SVM classification until training Stop when the number of samples reaches the preset number, and get the final classification result. The invention combines the extended multi-structural element morphological features with active learning, and combines the MCLU criterion with the nearest neighbor propagation clustering algorithm in the active learning to fully mine the spatial information of the hyperspectral image, and under the premise of small samples Improved classification accuracy.
本发明实现上述目的的具体步骤如下:The concrete steps that the present invention realizes the above object are as follows:
(1)分别输入一幅待分类的高光谱图像及其对应的图像数据集,该图像数据集包含数据样本的光谱信息和类别标签;(1) Input a hyperspectral image to be classified and its corresponding image data set respectively, the image data set contains spectral information and class labels of the data samples;
(2)对样本的光谱信息采用主成分分析法进行降维处理,提取前c个主成分PC,其中3≤c≤15,即高光谱图像的光谱特征;(2) Principal component analysis method is used to reduce the dimension of the spectral information of the sample, and the first c principal components PC are extracted, where 3≤c≤15, that is, the spectral characteristics of the hyperspectral image;
(3)对光谱特征进行形态学剖面MP变换,得到形态学剖面EMP,即高光谱图像的空间特征;(3) Perform morphological profile MP transformation on spectral features to obtain morphological profile EMP, that is, the spatial features of hyperspectral images;
(4)将光谱特征与空间特征用向量堆叠的方法串联,得到高光谱图像的特征集OEMP,其维度为7c;(4) The spectral feature and the spatial feature are connected in series by the method of vector stacking, and the feature set OEMP of the hyperspectral image is obtained, and its dimension is 7c;
(5)根据样本的类别标签,从特征集OEMP的每一类样本中,随机地选取ρ个训练样本作为训练集T,其余样本为测试集U,其中3≤ρ≤6;(5) According to the category label of the sample, randomly select ρ training samples from each category of samples in the feature set OEMP as the training set T, and the remaining samples are the test set U, where 3≤ρ≤6;
(6)利用训练集T进行支持向量机SVM有监督分类;(6) Use the training set T to perform SVM supervised classification;
(7)根据最大不确定性MCLU准则,将测试集U中的样本按照其相应MCLU值的大小,从小到大依次排列;(7) According to the maximum uncertainty MCLU criterion, the samples in the test set U are arranged in order from small to large according to the size of their corresponding MCLU values;
(8)选取测试集U中的前m个样本,其中50≤m≤120,根据近邻传播AP聚类算法对其进行聚类,得到每个样本所属的类别,并在每个类别中,选出MULU值最小的样本进行人工标记;(8) Select the first m samples in the test set U, where 50≤m≤120, and cluster them according to the neighbor propagation AP clustering algorithm to obtain the category to which each sample belongs, and in each category, select The sample with the smallest MULU value is manually marked;
(9)将标记的样本加入训练样本集T,同时将其从测试样本集中移除,生成新的训练样本集T′和测试样本集U′;(9) adding the marked samples to the training sample set T, and removing them from the test sample set at the same time, to generate a new training sample set T' and a test sample set U';
(10)利用训练样本集T′,进行SVM有监督分类,得到高光谱图像的分类结果;(10) Use the training sample set T' to perform SVM supervised classification to obtain the classification results of hyperspectral images;
(11)判断训练样本集T′中的样本数量是否达到预设数量,若是,执行步骤(12),否则,返回步骤(7);(11) Judging whether the number of samples in the training sample set T' reaches a preset number, if so, execute step (12), otherwise, return to step (7);
(12)由分类结果构造最终分类图,输出最终分类图。(12) Construct the final classification map from the classification results, and output the final classification map.
本发明与现有技术相比具有以下优点:Compared with the prior art, the present invention has the following advantages:
第一:由于本发明在扩展形态学中引入具有多个尺寸的结构元素,且选取合适的尺寸间隔,将其与原主成分用向量堆叠的方法串联起来作为样本新的特征,从而大幅度提高了分类精度;First: because the present invention introduces structural elements with multiple sizes in the extended morphology, selects appropriate size intervals, and connects them with the original principal components in series by the method of vector stacking as a new feature of the sample, thereby greatly improving the performance of the sample. classification accuracy;
第二:由于本发明采用在主动学习过程中将最大不确定性准则MCLU与AP聚类相结合的方式,先通过最大不确定性准则MCLU选取一定的样本,再对其进行AP聚类,选取每一类中MCLU值最小的样本进行标记,使得每一次迭代挑选出的未标记样本更具代表性,从而可以在小样本的前提下,以更短的时间得到较高精度的分类结果。Second: because the present invention adopts the method of combining the maximum uncertainty criterion MCLU and AP clustering in the active learning process, first select certain samples through the maximum uncertainty criterion MCLU, and then perform AP clustering on them, and select The samples with the smallest MCLU value in each class are labeled, so that the unlabeled samples selected in each iteration are more representative, so that the classification results with higher accuracy can be obtained in a shorter time under the premise of small samples.
附图说明Description of drawings
图1是本发明的总流程图;Fig. 1 is the general flow chart of the present invention;
图2是本发明中主动学习的子流程图;Fig. 2 is the sub-flow chart of active learning in the present invention;
图3是本发明与现有技术的总体分类精度对比图,其中图3(a)是本发明与现有技术在Indiana Pines图像上的总体分类精度对比图,图3(b)是本发明与现有技术在Pavia_U图像上的总体分类精度对比图。FIG. 3 is a comparison diagram of the overall classification accuracy of the present invention and the prior art, wherein FIG. 3(a) is a comparison diagram of the overall classification accuracy of the present invention and the prior art on Indiana Pines images, and FIG. 3(b) is the comparison diagram of the present invention and the prior art. Comparison of the overall classification accuracy of the prior art on Pavia_U images.
具体实施方式Detailed ways
下面结合附图对本发明做进一步的描述。The present invention will be further described below with reference to the accompanying drawings.
参照附图1,本发明的具体步骤如下:With reference to accompanying drawing 1, the concrete steps of the present invention are as follows:
步骤1,输入数据;Step 1, input data;
分别输入一幅待分类的高光谱图像及其对应的图像数据集,该图像数据集包含数据样本的光谱信息和类别标签;Input a hyperspectral image to be classified and its corresponding image dataset, the image dataset contains spectral information and category labels of the data samples;
本发明的实施例中选取两幅高光谱图像,进行两次实验。第一幅图像为包含103个波段的Pavia_U高光谱图像及该图像的类别标签;第二幅图像为包含200个波段的IndianaPines高光谱图像及该图像的类别标签;In the embodiment of the present invention, two hyperspectral images were selected and two experiments were performed. The first image is the Pavia_U hyperspectral image with 103 bands and the class label of the image; the second image is the IndianaPines hyperspectral image with 200 bands and the class label of the image;
步骤2,提取光谱特征;Step 2, extract spectral features;
由于高光谱图像的高维特性会带来计算复杂,信息冗余等问题,本发明采用主成分分析方法,对高光谱图像的光谱信息进行降维处理,提取前c个主成分PC,即高光谱图像的光谱特征,其中3≤c≤15。此处以c的最优取值10为例,得到高光谱图像前10个主成分PC;Since the high-dimensional characteristics of the hyperspectral image will bring about problems such as complicated calculation and information redundancy, the present invention adopts the principal component analysis method to perform dimension reduction processing on the spectral information of the hyperspectral image, and extract the first c principal components PC, that is, high Spectral signature of a spectral image, where 3≤c≤15. Here, taking the optimal value of c as 10 as an example, the first 10 principal components PC of the hyperspectral image are obtained;
上述对样本的光谱信息采用主成分分析法进行降维的具体步骤如下:The specific steps of using the principal component analysis method to reduce the dimension of the spectral information of the sample are as follows:
(2.1)根据样本的光谱信息得到高光谱图像的光谱矩阵Xs:(2.1) Obtain the spectral matrix X s of the hyperspectral image according to the spectral information of the sample:
其中,n为样本个数,p为样本的光谱信息长度,xnp表示第n个样本光谱信息的第p维值;Xs表示有n个样本高光谱图像的光谱矩阵,Xs的每一行均表示一个光谱信息长度为p的样本。Among them, n is the number of samples, p is the length of the spectral information of the sample, x np represents the p-th dimension value of the spectral information of the n-th sample; X s represents the spectral matrix of hyperspectral images of n samples, and each row of X s Both represent a sample with spectral information length p.
(2.2)通过下式计算样本第i维光谱信息的平均值 (2.2) Calculate the average value of the i-th dimensional spectral information of the sample by the following formula
其中,i=1,2,3,…p,表示求和操作,xki表示第k个样本的第i维光谱信息值,且1<k≤n;Among them, i=1,2,3,...p, represents the summation operation, x ki represents the i-th dimensional spectral information value of the k-th sample, and 1<k≤n;
(2.3)计算光谱矩阵Xs第i行、第j列的协方差值Sij:(2.3) Calculate the covariance value S ij of the i-th row and the j-th column of the spectral matrix X s :
其中,∑表示求和操作,·表示数值与数值的相乘操作,j=1,2,3,…p,表示样本第j维光谱信息的平均值,xkj表示第k个样本的第j维光谱信息值,且1<k≤n;Among them, ∑ represents the summation operation, · represents the multiplication operation of the numerical value and the numerical value, j=1,2,3,...p, represents the average value of the jth dimension spectral information of the sample, x kj represents the jth dimension spectral information value of the kth sample, and 1<k≤n;
进一步计算得到光谱矩阵Xs的协方差矩阵S:The covariance matrix S of the spectral matrix X s is obtained by further calculation:
(2.4)按照下式,对协方差矩阵S进行对角化处理:(2.4) Diagonalize the covariance matrix S according to the following formula:
S*qu=λu×qu S*q u =λ u ×q u
其中,qu表示协方差矩阵S的第u个特征向量,λu表示协方差矩阵S的第u个特征值,*表示矩阵与矩阵的相乘操作,×表示数值与矩阵的相乘操作,u=1,2,3,…p;Among them, q u represents the u-th eigenvector of the covariance matrix S, λ u represents the u-th eigenvalue of the covariance matrix S, * represents the multiplication operation between the matrix and the matrix, and × represents the multiplication operation between the numerical value and the matrix, u=1,2,3,...p;
(2.5)将特征向量进行正交归一化;(2.5) Orthonormalize the eigenvectors;
(2.6)将归一化的特征向量按对应特征值大小,从大到小进行排列,得到特征矩阵Xz;(2.6) The normalized eigenvectors are arranged according to the corresponding eigenvalues, from large to small, to obtain a feature matrix X z ;
(2.7)按照下式,计算光谱特征矩阵Xa:(2.7) Calculate the spectral characteristic matrix X a according to the following formula:
Xa=Xz*Xs X a =X z *X s
其中,Xa表示光谱特征矩阵,将光谱特征矩阵Xa每一行前c列定义为对应高光谱图像数据集样本降维后的光谱特征,1≤c≤p;Among them, X a represents the spectral feature matrix, and the first c columns of each row of the spectral feature matrix X a are defined as the spectral features after dimension reduction of the corresponding hyperspectral image dataset samples, 1≤c≤p;
(2.8)取Xa每一行的前c列,即为高光谱图像的前c个主成分PC。此处取c为10,则得到高光谱图像前10个主成分PC。(2.8) Take the first c columns of each row of X a , which are the first c principal components PC of the hyperspectral image. Here c is taken as 10, then the first 10 principal components PC of the hyperspectral image are obtained.
步骤3,提取空间特征;Step 3, extracting spatial features;
将步骤2得到的前10个主成分PC,对每一个主成分PCh(h=1,2,3,…10)分别进行形态学剖面MP变换,当结构元素的尺寸分别为z、2z、3z时,对每一个主成分分别求开剖面和闭剖面,总共可以得到60个形态学剖面EMP,即空间特征;The first 10 principal components PC obtained in step 2 are subjected to morphological profile MP transformation for each principal component PC h (h=1, 2, 3, ... 10) respectively. When the dimensions of the structural elements are z, 2z, At 3z, the open section and closed section are calculated for each principal component, and a total of 60 morphological sections EMP can be obtained, that is, spatial features;
结构元素的尺寸大小和个数选取非常重要,对高光谱图像的分类精度起着至关重要的作用,本发明的实施例中Pavia_U高光谱图像,取结构元素的尺寸为20,40,60;IndianaPines高光谱图像,取结构元素的尺寸为5,10,15;The selection of the size and number of the structural elements is very important, and plays a crucial role in the classification accuracy of the hyperspectral image. In the embodiment of the present invention, the Pavia_U hyperspectral image takes the size of the structural elements as 20, 40, and 60; IndianaPines hyperspectral image, taking the size of structuring elements as 5, 10, 15;
上述对光谱特征进行形态学剖面MP,得到形态学剖面EMP的具体步骤如下:The specific steps for obtaining the morphological profile EMP by performing the morphological profile MP on the spectral features are as follows:
(3.1)分别求10个主成分PC中每一个主成分的开剖面:(3.1) Find the open section of each principal component in the 10 principal components PC:
其中,PCh表示第h个主成分,且h=1,2,3,…c;形态学开剖面是利用大小不同的结构元素对同一成分使用开运算所得,表示开运算操作,开剖面是一系列膨胀操作加腐蚀操作的结果,R为结构元素尺寸大小;表示主成分PCh的第d个开形态学剖面特征,当d为1、2、3时,结构元素尺寸R分别取到z、2z、3z;Among them, PC h represents the h-th principal component, and h=1, 2, 3,... Represents the opening operation, the opening section is the result of a series of expansion operations and corrosion operations, and R is the size of the structural element; Represents the d-th open morphological profile feature of the principal component PC h . When d is 1, 2, and 3, the structuring element size R is taken as z, 2z, and 3z, respectively;
(3.2)分别求10个主成分PC中每一个主成分的闭剖面:(3.2) Find the closed section of each of the 10 principal components PC:
其中,PCh表示第h个主成分,且h=1,2,…10;闭形态学剖面是利用大小不同的结构元素对同一成分使用闭运算所得,表示闭运算操作,其与开运算相反,是一系列腐蚀操作加膨胀操作的结果,当d为1、2、3时,R为结构元素尺寸大小,分别取到z、2z、3z;OPγd(PCh)表示主成分PCh的第d个闭形态学剖面特征;Among them, PC h represents the h-th principal component, and h = 1, 2, ... 10; the closed morphological section is obtained by using the structural elements of different sizes to perform the closing operation on the same component, Represents the closing operation, which is the opposite of the opening operation and is the result of a series of corrosion operations plus expansion operations. When d is 1, 2, and 3, R is the size of the structural element, and z, 2z, and 3z are obtained respectively; OP γd (PC h ) represents the d-th closed morphological profile feature of the principal component PC h ;
(3.3)计算第h个主成分PCh的形态学剖面特征MP(PCh):(3.3) Calculate the morphological profile MP(PC h ) of the h-th principal component PC h :
依次取h=1,2,…10,将每个主成分计算得到的形态学剖面特征顺序排列,就得到10个主成分PC的形态学剖面EMP:Taking h=1, 2,...10 in turn, and arranging the morphological profile features calculated by each principal component in order, the morphological profile EMP of 10 principal components PC is obtained:
EMP={MP(PC1),MP(PC2),…MP(PC10)}。EMP={MP(PC 1 ), MP(PC 2 ), . . . MP(PC 10 )}.
步骤4,融合空谱特征;Step 4, fusing empty spectrum features;
将光谱特征与空间特征用向量堆叠的方法串联,得到高光谱图像的特征集OEMP,即OEMP={PC,EMP},其为70维度;The spectral feature and the spatial feature are connected in series by the method of vector stacking, and the feature set OEMP of the hyperspectral image is obtained, that is, OEMP={PC, EMP}, which is 70 dimensions;
步骤5,获取训练样本集与测试样本集;Step 5, obtaining a training sample set and a test sample set;
根据样本的类别标签,从特征集OEMP的每一类样本中,随机地选取ρ个训练样本作为训练集T,其余样本为测试集U,其中3≤ρ≤6,此处取ρ的值为3在本实施例中进一步说明;According to the class labels of the samples, randomly select ρ training samples from each class of samples in the feature set OEMP as the training set T, and the rest of the samples are the test set U, where 3≤ρ≤6, where the value of ρ is taken as the training set T. 3 is further described in this embodiment;
本发明的实施例中Pavia_U高光谱图像,其类别标签有9类,则共选取27个样本作为训练样本T;对于Indiana Pines高光谱图像,其类别标签有16类,则共选取48个样本作为训练样本T;In the embodiment of the present invention, the Pavia_U hyperspectral image has 9 types of category labels, and a total of 27 samples are selected as the training samples T; for the Indiana Pines hyperspectral image, there are 16 types of category labels, then a total of 48 samples are selected as the training samples T. training sample T;
步骤6,构造初始分类器;Step 6, construct an initial classifier;
利用训练集T及该训练集中各样本对应的类别标签,进行支持向量机SVM有监督分类;Use the training set T and the class labels corresponding to each sample in the training set to perform SVM supervised classification;
步骤7,MCLU准则;Step 7, MCLU criterion;
根据最大不确定性准则(MCLU准则),将测试集U中的样本按照其相应MCLU值的大小,从小到大依次排列;According to the maximum uncertainty criterion (MCLU criterion), the samples in the test set U are arranged in order from small to large according to the size of their corresponding MCLU values;
所述MCLU准则为:The MCLU criteria are:
MCLU是以分类超平面几何距离为依据,通过计算样本相距每类超平面的距离,进而得到前两个最大距离的差值,差值越小说明将该样本被划分为这两个类别的可信度差不多,那么,该样本包含的信息量就越大,将其添加到训练样本集后对于分类器性能提升也会更大。MCLU is based on the geometric distance of the classification hyperplane. By calculating the distance between the sample and each type of hyperplane, the difference between the first two maximum distances is obtained. The smaller the difference is, the sample can be divided into these two categories. If the reliability is similar, the greater the amount of information contained in the sample, the greater the performance improvement of the classifier after adding it to the training sample set.
按照下式,计算样本的MCLU值:Calculate the MCLU value of the sample according to the following formula:
其中,la表示样本的类别数,r1表示样本相对于分类面距离的最大值的序号,r2表示样本相对于分类面的距离的次大值的序号,XMCLU表示样本x的MCLU值。Among them, la represents the number of categories of the sample, r 1 represents the serial number of the maximum value of the distance between the sample and the classification surface, r 2 represents the serial number of the second largest value of the distance between the sample and the classification surface, and X MCLU represents the MCLU value of the sample x.
步骤8,近邻传播聚类,选出需要标记的样本;Step 8, neighbor propagation clustering, and select the samples that need to be marked;
选取测试集U中的前m个样本,其中50≤m≤120,根据近邻传播AP聚类算法对其进行聚类,得到每个样本所属的类别,并在每个类别中,选出MULU值最小的样本进行专家标记,此处取m的值为100;Select the first m samples in the test set U, where 50≤m≤120, cluster them according to the AP clustering algorithm of neighbor propagation, get the category to which each sample belongs, and select the MULU value in each category The smallest sample is marked by experts, and the value of m is taken as 100 here;
AP聚类是划分聚类方法的一种,它是根据数据对象之间的相似度对数据进行分类。AP中传递两种类型的消息,吸引度和归属度。吸引度rt(l,s)表示从数据l发送到候选聚类中心s的数值消息,反映s点是否适合作为l的聚类中心。at(l,s)表示第t代时,样本l对样本s的归属度。归属度at(l,s)则从候选聚类中心s发送到l的数值消息,反映l是否选择s作为其聚类中心。rt(l,s)与at(l,s)越大,则s点作为聚类中心的可能性就越大,并且l隶属于以s为聚类中心的聚类的可能性也越大。AP算法通过迭代过程不断更新每一个点的吸引度和归属度值,直到产生τ个高质量的聚类中心,同时将其余的数据点分配到相应的聚类中。AP clustering is a kind of partition clustering method, which classifies data according to the similarity between data objects. There are two types of messages delivered in AP, attraction and attribution. The attractiveness r t (l, s) represents the numerical message sent from the data l to the candidate cluster center s, reflecting whether the point s is suitable as the cluster center of l. a t (l, s) represents the degree of belonging of sample l to sample s in the t-th generation. The attribution degree at (l, s ) is a numerical message sent from the candidate cluster center s to l, reflecting whether l chooses s as its cluster center. The larger r t (l,s) and at (l,s) are, the more likely point s is to be the cluster center, and the more likely that l belongs to the cluster with s as the cluster center. big. The AP algorithm continuously updates the attractiveness and attribution values of each point through an iterative process until τ high-quality cluster centers are generated, and the remaining data points are assigned to the corresponding clusters.
上述根据近邻传播AP聚类算法对m个样本进行聚类,步骤如下:The above steps are as follows to cluster m samples according to the AP clustering algorithm of neighbor propagation:
(8.1)初始化吸引度矩阵R和归属度矩阵A:(8.1) Initialize the attraction matrix R and the attribution matrix A:
其中,1<l≤m,1<s≤m;t为迭代次数,初始化t为1;rt(l,s)表示第t代时,样本s对样本l的吸引度,at(l,s)表示第t代时,样本l对样本s的归属度;Among them, 1<l≤m, 1<s≤m; t is the number of iterations, and t is initialized to 1; r t (l, s) represents the attractiveness of sample s to sample l in the t-th generation, a t (l ,s) represents the degree of belonging of sample l to sample s in the t-th generation;
(8.2)更新样本s对样本l的吸引度为rt+1(l,s):(8.2) The attractiveness of the updated sample s to the sample l is r t+1 (l, s):
其中,at(l,s′)为第t代时,样本l对样本s′的归属度;Among them, at (l, s ') is the attribution degree of sample l to sample s' in the t-th generation;
(8.3)更新样本l对样本s的归属度为at+1(l,s):(8.3) The attribution of update sample l to sample s is a t+1 (l, s):
(8.4)将样本l和样本s吸引度和归属度求和,得到目标函数f(l,s):(8.4) Sum the attractiveness and attribution of sample l and sample s to get the objective function f(l,s):
f(l,s)=rt+1(l,s)+at+1(l,s)f(l,s)=r t+1 (l,s)+at +1 (l,s)
进一步得到f(l,s)的相应矩阵F:Further get the corresponding matrix F of f(l,s):
(8.5)判断F中每一个元素的大小是否保持不变或者t值是否为1000,若是,则得到m个样本所属的每个类别;否则,t值加1,返回步骤(8.2)。(8.5) Determine whether the size of each element in F remains unchanged or whether the t value is 1000. If so, obtain each category to which m samples belong; otherwise, add 1 to the t value and return to step (8.2).
步骤9,生成新的训练样本集和测试样本集;Step 9, generate a new training sample set and a test sample set;
将步骤8得到的需要标记的样本加入训练样本集T,同时将其从测试样本集中移除,生成新的训练样本集T′和测试样本集U′;Adding the samples to be marked obtained in step 8 to the training sample set T, and removing them from the test sample set at the same time, to generate a new training sample set T' and a test sample set U';
步骤10,构造分类器;Step 10, construct a classifier;
利用训练样本集T′,进行支持向量机SVM有监督分类,得到高光谱图像的分类结果;Use the training sample set T' to perform SVM supervised classification to obtain the classification results of hyperspectral images;
步骤11,判断训练样本数量是否达到预设数量;Step 11, determine whether the number of training samples reaches a preset number;
判断训练样本集T′中的样本数量是否达到预设数量,本发明的实施例中Pavia_U高光谱图像,其预设数量设置为590个样本;对于Indiana Pines高光谱图像,其预设数量设置为290个样本;若是,执行步骤(12),否则,返回步骤(7);Determine whether the number of samples in the training sample set T' reaches a preset number. In the embodiment of the present invention, the preset number of Pavia_U hyperspectral images is set to 590 samples; for Indiana Pines hyperspectral images, the preset number is set to 290 samples; if so, execute step (12), otherwise, return to step (7);
步骤12,得到分类结果;Step 12, obtain the classification result;
由分类结果构造最终分类图,输出最终分类图。The final classification map is constructed from the classification results, and the final classification map is output.
下面结合仿真实验对本发明的效果做进一步的说明。The effect of the present invention will be further described below in conjunction with simulation experiments.
1.仿真实验条件:1. Simulation experimental conditions:
本发明仿真实验的运行环境是:处理器为Inter Core i3-3210M,主频为3.2GHz,内存4GB;软件平台为Windows10 64位操作系统、Matlab R2017a进行仿真测试。The running environment of the simulation experiment of the present invention is: the processor is Inter Core i3-3210M, the main frequency is 3.2GHz, and the memory is 4GB; the software platform is Windows10 64-bit operating system and Matlab R2017a for simulation test.
2.仿真实验数据:2. Simulation experimental data:
本发明的仿真实验采用的高光谱图像有印第安纳州高光谱图像和帕维亚大学图像。印第安纳州高光谱图像AVIRIS Indiana Pines是高光谱分类实验中一个常用的数据,它是由美国国家航天局的机载可见/红外成像光谱仪(AVIRIS)对美国Indiana州西北部印第安遥感实验区的成像,于1992年获取。它包含了农作物、草地及森林植被的混合区,共16类地物。整幅图像大小为145×145像素,空间分辨率20m×20m,去掉20个杂波波段后剩余200个波段。帕维亚校园高光谱遥感影像Pavia_U图像是分类实验中一个常用的数据,它是由ROSIS传感器获取的。ROSISI传感器把0.43-0.86m光谱分为115个波段,空间分辨率为1.3米。帕维亚校园图像大小610×340,去除杂波波段后剩余103个波段,图像共包含9类信息。The hyperspectral images used in the simulation experiments of the present invention include Indiana hyperspectral images and images of the University of Pavia. Indiana hyperspectral image AVIRIS Indiana Pines is a commonly used data in hyperspectral classification experiments. It is imaged by NASA's Airborne Visible/Infrared Imaging Spectrometer (AVIRIS) on the Indiana Remote Sensing Experiment Area in northwestern Indiana, USA. Acquired in 1992. It contains a mixture of crops, grasslands and forest vegetation, with a total of 16 types of features. The size of the entire image is 145×145 pixels, the spatial resolution is 20m×20m, and 200 bands remain after removing 20 clutter bands. The Pavia_U image, a hyperspectral remote sensing image of the Pavia campus, is a commonly used data in classification experiments, which is acquired by the ROSIS sensor. The ROSISI sensor divides the 0.43-0.86m spectrum into 115 bands with a spatial resolution of 1.3m. The image size of the Pavia campus image is 610×340. After removing the clutter band, there are 103 bands left. The image contains 9 types of information.
3.仿真实验内容与结果分析:3. Simulation experiment content and result analysis:
本发明的仿真实验有两个。There are two simulation experiments of the present invention.
本发明的仿真实验1验证本发明结构元素尺寸的大小和个数选取的合理性。本发明在形态学剖面变换提取空间特征时,形态学剖面变换中结构元素尺寸的大小和个数选取非常重要,对高光谱图像的分类精度起着至关重要的作用,因此关于结构元素尺寸的选取,做了以下对比试验。当其它步骤都与本发明相同时,对于Indiana Pines高光谱图像,对比实验1的结构元素只取一个尺寸且其值为5;对比实验2的结构元素取三个尺寸且其值分别为1、2、3;对比实验3的结构元素取五个尺寸且其值分别为1、2、3、4、5;本发明结构元素取三个尺寸且其值分别为5、10、15;对于Pavia_U高光谱图像,对比实验1的结构元素只取一个尺寸且其值为20;对比实验2的结构元素取三个尺寸且其值分别为1、2、3;对比实验3的结构元素取五个尺寸且其值分别为1、2、3、4、5;本发明结构元素取三个尺寸且其值分别为20、40、60,分类结果对比如表1、2所示。The simulation experiment 1 of the present invention verifies the rationality of the selection of the size and number of the structural elements of the present invention. When the present invention extracts spatial features through morphological profile transformation, the selection of the size and number of structuring elements in morphological profile transformation is very important, and plays a crucial role in the classification accuracy of hyperspectral images. selected, and the following comparative tests were performed. When other steps are the same as in the present invention, for the Indiana Pines hyperspectral image, the structural element of Comparative Experiment 1 only takes one size and its value is 5; the structural element of Comparative Experiment 2 takes three sizes and its values are 1, 2, 3; the structural elements of Comparative Experiment 3 take five dimensions and their values are 1, 2, 3, 4, and 5 respectively; the structural elements of the present invention take three dimensions and their values are 5, 10, and 15 respectively; for Pavia_U Hyperspectral images, the structural element of Comparative Experiment 1 has only one size and its value is 20; the structural element of Comparative Experiment 2 has three sizes and its value is 1, 2, and 3; the structural element of Comparative Experiment 3 is taken five The dimensions and their values are 1, 2, 3, 4, and 5, respectively; the structural elements of the present invention take three dimensions and their values are 20, 40, and 60, respectively. The classification results are shown in Tables 1 and 2.
表1不同的结构元素在Indiana Pines图像上分类结果对比表Table 1 Comparison of classification results of different structural elements on Indiana Pines images
表2不同的结构元素在Pavia_U图像上分类结果对比表Table 2 Comparison of classification results of different structural elements on Pavia_U images
从表1、表2可以看出,本发明相对于只取一个结构元素和结构元素尺寸间隔过小的方法相比,有更高的分类精度。说明结构元素的尺寸大小和个数选取非常重要,对高光谱图像的分类精度起着至关重要的作用,本发明在扩展形态学中引入具有多个尺寸的结构元素,且选取了合适的尺寸间隔,使得高光谱分类达到更高的分类精度。As can be seen from Table 1 and Table 2, the present invention has higher classification accuracy compared with the method of taking only one structural element and the method that the size interval of the structural element is too small. It shows that the selection of the size and number of structural elements is very important, and plays a crucial role in the classification accuracy of hyperspectral images. The present invention introduces structural elements with multiple sizes in the extended morphology, and selects the appropriate size. interval, so that the hyperspectral classification can achieve higher classification accuracy.
本发明的仿真实验2将本发明的方法和现有技术的两种分类方法进行了对比。这两种方法分别是S.Patra等人提出的基于主动学习和遗传算法的高光谱图像分类方法、李军等人提出的基于主动学习和循环置信传播的高光谱图像分类方法。S.Patra等人提出的方法是先对光谱信息数据进行PCA降维,然后用两个结构元素尺寸对降维后的光谱信息数据进行形态学剖面变换,得到空谱特征,通过主动学习和遗传算法相结合,迭代进行支持向量机有监督分类。李军等人提出的方法是首先通过循环置信传播将高光谱图像的光谱信息和空间信息相结合,接着利用空谱信息进行主动学习有监督分类。The simulation experiment 2 of the present invention compares the method of the present invention and the two classification methods of the prior art. The two methods are the hyperspectral image classification method based on active learning and genetic algorithm proposed by S. Patra et al., and the hyperspectral image classification method based on active learning and recurrent belief propagation proposed by Li Jun et al. The method proposed by S. Patra et al. is to first perform PCA dimensionality reduction on the spectral information data, and then use two structuring element sizes to transform the morphological profile of the dimensionally reduced spectral information data to obtain empty spectral features. Algorithms are combined to iteratively perform SVM supervised classification. The method proposed by Jun Li et al. first combines the spectral information and spatial information of hyperspectral images through cyclic belief propagation, and then uses the spatial spectral information for active learning supervised classification.
因为每种方法的采样方式不同,所以不能得到相同个数的训练样本,则每种方法最终都选择相近个数的训练样本以保证公平。S.Patra等人提出的方法中,高光谱图像中每类选取3个样本,作为初始训练样本,对于Indiana Pines图像有16类,则选取48个初始样本,主动学习每次迭代选取20个训练样本,迭代27次,则总共选取588个训练样本;对于Pavia_U图像有9类,则选取27个初始样本,需要迭代13次,则总共选取287个训练样本;支持向量机分类器采用交叉验证的方式对参数进行设定。李军等人提出的方法中,对于IndianaPines图像每类随机选取5个初始样本,则选取80个初始样本,主动学习每次迭代选取10个训练样本,需要迭代51次,则总共选取590个训练样本;对Pavia_U图像有9类,每类随机选取10个初始样本,则选取90个初始样本,主动学习每次迭代选取10个训练样本,需要迭代20次,则总共选取290个训练样本。本发明对于Indiana Pines图像每类随机选取3个初始样本,则选取48个初始样本,主动学习预设的训练样本的最大数量为590;对Pavia_U图像有9类,每类随机选取3个初始样本,则选取27个初始样本,主动学习预设的训练样本的最大数量为290。支持向量机分类器采用交叉验证的方式对参数设定,仿真实验共进行10次。Because the sampling methods of each method are different, the same number of training samples cannot be obtained, so each method finally selects a similar number of training samples to ensure fairness. In the method proposed by S. Patra et al., 3 samples of each class in the hyperspectral image are selected as the initial training samples. For Indiana Pines images with 16 classes, 48 initial samples are selected, and 20 training samples are selected for each iteration of active learning sample, iteratively 27 times, a total of 588 training samples are selected; for Pavia_U images with 9 categories, 27 initial samples are selected, and 13 iterations are required, a total of 287 training samples are selected; the support vector machine classifier adopts cross-validation way to set parameters. In the method proposed by Li Jun et al., 5 initial samples are randomly selected for each type of IndianaPines image, 80 initial samples are selected, and 10 training samples are selected for each iteration of active learning, which requires 51 iterations, and a total of 590 training samples are selected Samples; for Pavia_U images, there are 9 categories, 10 initial samples are randomly selected for each category, 90 initial samples are selected, and 10 training samples are selected for each iteration of active learning, and 20 iterations are required, a total of 290 training samples are selected. The present invention randomly selects 3 initial samples for each type of Indiana Pines image, then selects 48 initial samples, and the maximum number of training samples preset by active learning is 590; for Pavia_U images, there are 9 types, and each type randomly selects 3 initial samples , 27 initial samples are selected, and the maximum number of training samples preset by active learning is 290. The parameters of the support vector machine classifier were set by cross-validation, and the simulation experiments were carried out for 10 times.
本发明和现有技术在两幅图像上10次实验的整体分类精度(OA)平均值、平均分类精度(AA)平均值和Kappa系数平均值对比如表3、4所示。SSMAL表示S.Patra等人提出的基于主动学习和遗传算法的高光谱图像分类方法,MPM-LBP-AL表示李军等人提出的基于主动学习和循环置信传播的高光谱图像分类方法。Tables 3 and 4 show the comparison of the overall classification accuracy (OA) average value, the average classification accuracy (AA) average value, and the Kappa coefficient average value of 10 experiments on two images between the present invention and the prior art. SSMAL represents the hyperspectral image classification method based on active learning and genetic algorithm proposed by S. Patra et al., and MPM-LBP-AL represents the hyperspectral image classification method based on active learning and cyclic belief propagation proposed by Li Jun et al.
表3现有技术与本发明在Indiana Pines图像上分类结果的对比表Table 3 The comparison table of the classification results of the prior art and the present invention on Indiana Pines images
表4现有技术与本发明在Pavia_U图像上分类结果的对比表The comparison table of the classification result of table 4 prior art and the present invention on Pavia_U image
图3是本发明与现有技术的总体分类精度对比图,其中图3(a)是本发明与现有技术在Indiana Pines图像上的总体分类精度对比图,图3(b)是本发明与现有技术在Pavia_U图像上的总体分类精度对比图。FIG. 3 is a comparison diagram of the overall classification accuracy of the present invention and the prior art, wherein FIG. 3(a) is a comparison diagram of the overall classification accuracy of the present invention and the prior art on Indiana Pines images, and FIG. 3(b) is the comparison diagram of the present invention and the prior art. Comparison of the overall classification accuracy of the prior art on Pavia_U images.
从表3、4可以看出,在Indiana Pines图像的仿真实验中,本发明与S.Patra等人的方法相比,分类精度较高,且时间效率也有优势;李军等人的方法相较于本发明虽然分类精度上有些许优势,但本发明在运行时间上优势明显,比李军等人的方法快5480秒。在Pavia_U图像的仿真实验中,本发明与S.Patra等人的方法相比,时间上有优势,分类精度也有很大提升;本发明与李军等人的方法相比,分类精度有很大的提高,且平均所需时间比李军等人的方法快21757秒,能够在很短的时间内达到很高的分类精度。由此可以看出本发明的分类精度较高,且在图像数据较大时时间优势更加明显。从图3的总体分类精度对比图可以看出本发明的分类精度较高,是因为本发明有更合理的结构元素尺寸和大小的选取,且本发明在主动学习中利用MCLU准则和AP聚类结合来选择样本进行标记,选取出的样本更具有代表性和多样性。本发明的时间优势也很明显,这是因为李军等人的方法在空间信息上的利用方案有一个对图像进行处理的过程,这是很耗时的,尤其是在图像数据较大时更加明显。而本发明的空间信息利用方式是形态学剖面特征作为空间特征实现引入空间信息,操作简单,节省了很大一部分时间。本发明将扩展形态学与主动学习相结合,利用MCLU准则和AP聚类来选择样本进行标记,缩短了分类所需时间,提高了分类精度。It can be seen from Tables 3 and 4 that in the simulation experiment of Indiana Pines images, the present invention has higher classification accuracy and time efficiency than the method of S. Patra et al. The method of Li Jun et al. Although the present invention has some advantages in classification accuracy, the present invention has obvious advantages in running time, which is 5480 seconds faster than the method of Li Jun et al. In the simulation experiment of Pavia_U image, compared with the method of S.Patra et al., the present invention has advantages in time and the classification accuracy is also greatly improved; compared with the method of Li Jun et al. The average required time is 21757 seconds faster than the method of Li Jun et al., which can achieve high classification accuracy in a very short time. From this, it can be seen that the classification accuracy of the present invention is higher, and the time advantage is more obvious when the image data is larger. It can be seen from the overall classification accuracy comparison diagram in FIG. 3 that the classification accuracy of the present invention is higher because the present invention has more reasonable selection of the size and size of structural elements, and the present invention utilizes MCLU criteria and AP clustering in active learning Combined to select samples for marking, the selected samples are more representative and diverse. The time advantage of the present invention is also obvious. This is because the utilization scheme of the method of Li Jun et al. has a process of processing the image, which is very time-consuming, especially when the image data is large. obvious. And the spatial information utilization method of the present invention is that the morphological profile feature is used as the spatial feature to realize the introduction of spatial information, the operation is simple, and a large part of time is saved. The invention combines extended morphology with active learning, uses MCLU criterion and AP clustering to select samples for marking, shortens the time required for classification, and improves classification accuracy.
本发明未详细说明部分属于本领域技术人员公知常识。The parts of the present invention that are not described in detail belong to the common knowledge of those skilled in the art.
以上描述仅是本发明的几个具体实例,显然对于本领域的专业人员来说,在了解了本发明内容和原理后,都可能在不背离本发明原理、结构的情况下,进行形式和细节上的各种修正和改变,但是这些基于本发明思想的修正和改变仍在本发明的权利要求保护范围之内。The above descriptions are only a few specific examples of the present invention. Obviously, for those skilled in the art, after understanding the content and principles of the present invention, it is possible to carry out forms and details without departing from the principles and structures of the present invention. Various modifications and changes above, but these modifications and changes based on the idea of the present invention are still within the scope of protection of the claims of the present invention.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810698251.XA CN108985360B (en) | 2018-06-29 | 2018-06-29 | Hyperspectral classification method based on extended morphology and active learning |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810698251.XA CN108985360B (en) | 2018-06-29 | 2018-06-29 | Hyperspectral classification method based on extended morphology and active learning |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108985360A CN108985360A (en) | 2018-12-11 |
| CN108985360B true CN108985360B (en) | 2022-04-08 |
Family
ID=64539567
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810698251.XA Active CN108985360B (en) | 2018-06-29 | 2018-06-29 | Hyperspectral classification method based on extended morphology and active learning |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108985360B (en) |
Families Citing this family (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110110596B (en) * | 2019-03-29 | 2022-12-02 | 西北大学 | Hyperspectral image feature extraction, classification model construction and classification method |
| CN110298396B (en) * | 2019-06-25 | 2022-02-08 | 北京工业大学 | Hyperspectral image classification method based on deep learning multi-feature fusion |
| CN111191510B (en) * | 2019-11-29 | 2022-12-09 | 杭州电子科技大学 | Relation network-based remote sensing image small sample target identification method in complex scene |
| CN111160273B (en) * | 2019-12-31 | 2023-05-09 | 北京云智空间科技有限公司 | Hyperspectral image spatial spectrum joint classification method and device |
| CN111898423B (en) * | 2020-06-19 | 2022-12-23 | 北京理工大学 | A Morphology-Based Method for Fine Classification of Ground Objects in Multi-source Remote Sensing Images |
| CN112990316B (en) * | 2021-03-18 | 2023-04-18 | 浪潮云信息技术股份公司 | Hyperspectral remote sensing image classification method and system based on multi-saliency feature fusion |
| CN113139513B (en) * | 2021-05-14 | 2023-11-10 | 辽宁工程技术大学 | Spatial spectrum active learning hyperspectral classification method based on superpixel contours and improved PSO-ELM |
| CN113191442B (en) * | 2021-05-14 | 2023-11-17 | 中国石油大学(华东) | A mutual conduction learning hyperspectral image classification method |
| CN113963218A (en) * | 2021-11-23 | 2022-01-21 | 云南电网有限责任公司电力科学研究院 | Hyperspectral image classification method and device based on morphology |
| CN114332534B (en) * | 2021-12-29 | 2024-03-29 | 山东省科学院海洋仪器仪表研究所 | Hyperspectral image small sample classification method |
| CN114639009B (en) * | 2022-01-11 | 2024-04-16 | 华南农业大学 | Dried longan variety classification method and device based on hyperspectral image and machine learning |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7545986B2 (en) * | 2004-09-16 | 2009-06-09 | The United States Of America As Represented By The Secretary Of The Navy | Adaptive resampling classifier method and apparatus |
| CN101710387A (en) * | 2009-10-29 | 2010-05-19 | 中国科学院对地观测与数字地球科学中心 | Intelligent method for classifying high-resolution remote sensing images |
| CN103258214A (en) * | 2013-04-26 | 2013-08-21 | 南京信息工程大学 | Remote sensing image classification method based on image block active learning |
| CN103345643A (en) * | 2013-06-13 | 2013-10-09 | 南京信息工程大学 | Remote sensing image classification method |
| CN103632160A (en) * | 2012-08-24 | 2014-03-12 | 孙琤 | Combination-kernel-function RVM (Relevance Vector Machine) hyperspectral classification method integrated with multi-scale morphological characteristics |
| CN103839078A (en) * | 2014-02-26 | 2014-06-04 | 西安电子科技大学 | Hyperspectral image classifying method based on active learning |
| CN104680185A (en) * | 2015-03-15 | 2015-06-03 | 西安电子科技大学 | Hyperspectral image classification method based on boundary point reclassification |
| CN105956612A (en) * | 2016-04-25 | 2016-09-21 | 西安电子科技大学 | Hyperspectral image classification method based on active learning and semi-supervised learning |
| CN106355212A (en) * | 2016-10-28 | 2017-01-25 | 哈尔滨工业大学 | Hyperspectral image classification method based on morphology contour characteristics and nonlinear multiple kernel learning |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107451614B (en) * | 2017-08-01 | 2019-12-24 | 西安电子科技大学 | Hyperspectral Classification Method Based on Fusion of Spatial Coordinates and Spatial Spectral Features |
| CN107871132B (en) * | 2017-10-31 | 2022-03-15 | 广东交通职业技术学院 | Hyperspectral image classification method for spatial feature adaptive optimization |
-
2018
- 2018-06-29 CN CN201810698251.XA patent/CN108985360B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7545986B2 (en) * | 2004-09-16 | 2009-06-09 | The United States Of America As Represented By The Secretary Of The Navy | Adaptive resampling classifier method and apparatus |
| CN101710387A (en) * | 2009-10-29 | 2010-05-19 | 中国科学院对地观测与数字地球科学中心 | Intelligent method for classifying high-resolution remote sensing images |
| CN103632160A (en) * | 2012-08-24 | 2014-03-12 | 孙琤 | Combination-kernel-function RVM (Relevance Vector Machine) hyperspectral classification method integrated with multi-scale morphological characteristics |
| CN103258214A (en) * | 2013-04-26 | 2013-08-21 | 南京信息工程大学 | Remote sensing image classification method based on image block active learning |
| CN103345643A (en) * | 2013-06-13 | 2013-10-09 | 南京信息工程大学 | Remote sensing image classification method |
| CN103839078A (en) * | 2014-02-26 | 2014-06-04 | 西安电子科技大学 | Hyperspectral image classifying method based on active learning |
| CN104680185A (en) * | 2015-03-15 | 2015-06-03 | 西安电子科技大学 | Hyperspectral image classification method based on boundary point reclassification |
| CN105956612A (en) * | 2016-04-25 | 2016-09-21 | 西安电子科技大学 | Hyperspectral image classification method based on active learning and semi-supervised learning |
| CN106355212A (en) * | 2016-10-28 | 2017-01-25 | 哈尔滨工业大学 | Hyperspectral image classification method based on morphology contour characteristics and nonlinear multiple kernel learning |
Non-Patent Citations (2)
| Title |
|---|
| A Spectral-Spatial Multicriteria Active Learning Technique for Hyperspectral Image Classification;Swarnajyoti Patra等;《IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing》;20170920;第10卷(第12期);第5213–5227页 * |
| Batch-Mode Active-Learning Methods for the Interactive Classification of Remote Sensing Images;Begüm Demir等;《IEEE Transactions on Geoscience and Remote Sensing》;20101028;第49卷(第03期);第1014–1031页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108985360A (en) | 2018-12-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108985360B (en) | Hyperspectral classification method based on extended morphology and active learning | |
| Kasinathan et al. | Machine learning ensemble with image processing for pest identification and classification in field crops | |
| CN110321963B (en) | Hyperspectral image classification method based on fusion of multi-scale and multi-dimensional spatial spectral features | |
| CN107451614B (en) | Hyperspectral Classification Method Based on Fusion of Spatial Coordinates and Spatial Spectral Features | |
| Gautam et al. | ESDNN: A novel ensembled stack deep neural network for mango leaf disease classification and detection | |
| CN107992891B (en) | Multispectral remote sensing image change detection method based on spectral vector analysis | |
| CN112308152B (en) | Hyperspectral image ground object classification method based on spectrum segmentation and homogeneous region detection | |
| Ahmad et al. | Spatial-prior generalized fuzziness extreme learning machine autoencoder-based active learning for hyperspectral image classification | |
| CN111814685B (en) | Hyperspectral image classification method based on double-branch convolution self-encoder | |
| CN108830296A (en) | A kind of improved high score Remote Image Classification based on deep learning | |
| CN109948693A (en) | A hyperspectral image classification method based on superpixel sample augmentation and generative adversarial network | |
| CN111401426B (en) | A Few-Sample Hyperspectral Image Classification Method Based on Pseudo-Label Learning | |
| CN107145836B (en) | Hyperspectral image classification method based on stacked boundary identification self-encoder | |
| CN105760900B (en) | A Hyperspectral Image Classification Method Based on Nearest Neighbor Propagation Clustering and Sparse Multi-Kernel Learning | |
| CN112381144B (en) | Heterogeneous deep network method for non-European and Euclidean domain space spectrum feature learning | |
| CN110084311A (en) | Hyperspectral image band selection method based on ternary weight convolutional neural networks | |
| Chen et al. | Hyperspectral remote sensing image classification based on dense residual three-dimensional convolutional neural network | |
| Krishna et al. | Fuzzy-twin proximal SVM kernel-based deep learning neural network model for hyperspectral image classification | |
| Kollapudi et al. | A New Method for Scene Classification from the Remote Sensing Images. | |
| Liu et al. | A global activated feature pyramid network for tiny pest detection in the wild | |
| Almasoud et al. | Artificial Intelligence-Based Fusion Model for Paddy Leaf Disease Detection and Classification. | |
| CN106529563A (en) | High-spectral band selection method based on double-graph sparse non-negative matrix factorization | |
| Deng et al. | Citrus disease recognition based on weighted scalable vocabulary tree | |
| CN109034213B (en) | Method and system for hyperspectral image classification based on correlation entropy principle | |
| CN113469084B (en) | Hyperspectral image classification method based on contrast generation countermeasure network |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |