CN103268494A - Parasite egg recognition method based on sparse representation - Google Patents

Parasite egg recognition method based on sparse representation Download PDF

Info

Publication number
CN103268494A
CN103268494A CN2013101810124A CN201310181012A CN103268494A CN 103268494 A CN103268494 A CN 103268494A CN 2013101810124 A CN2013101810124 A CN 2013101810124A CN 201310181012 A CN201310181012 A CN 201310181012A CN 103268494 A CN103268494 A CN 103268494A
Authority
CN
China
Prior art keywords
dictionary
identification
initial
image
class
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.)
Granted
Application number
CN2013101810124A
Other languages
Chinese (zh)
Other versions
CN103268494B (en
Inventor
李峰
曾晓辉
金红
潘雨青
陈盛霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu University
Original Assignee
Jiangsu University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Jiangsu University filed Critical Jiangsu University
Priority to CN201310181012.4A priority Critical patent/CN103268494B/en
Publication of CN103268494A publication Critical patent/CN103268494A/en
Application granted granted Critical
Publication of CN103268494B publication Critical patent/CN103268494B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

本发明属于图像识别技术领域,具体涉及一种基于稀疏表示的寄生虫虫卵识别方法,包括:建立初始字典;使用K-SVD算法对字典进行学习;处理输入图像;计算重建误差矩阵;获取候选图像块;识别候选图像块等步骤。本发明引入了基于稀疏表示的分类算法,增强了整个寄生虫虫卵识别算法对各种干扰因素的鲁棒性;引入了Batch-OMP算法用于大规模稀疏表示过程,提高了识别效率;引入了用高斯金字塔降维后的样本直接建立字典的方法,避免了提取虫卵目标特征的步骤,使识别过程变得更为简便;引入了建立误差矩阵并求其局部最小值的方法,避免了在初步定位过程中得到包含同一目标的不同图像块。

The invention belongs to the technical field of image recognition, and specifically relates to a method for identifying parasite eggs based on sparse representation, including: establishing an initial dictionary; using the K-SVD algorithm to learn the dictionary; processing an input image; calculating and reconstructing an error matrix; obtaining candidates Image blocks; steps such as identifying candidate image blocks. The invention introduces a classification algorithm based on sparse representation, which enhances the robustness of the entire parasite egg recognition algorithm to various interference factors; introduces the Batch-OMP algorithm for large-scale sparse representation process, and improves the recognition efficiency; introduces The method of directly building a dictionary with samples after Gaussian pyramid dimension reduction avoids the step of extracting egg target features, making the recognition process easier; introduces the method of establishing an error matrix and finding its local minimum, avoiding the Different image blocks containing the same object are obtained in the preliminary localization process.

Description

基于稀疏表示的寄生虫虫卵识别方法Parasite egg recognition method based on sparse representation

技术领域technical field

本发明属于图像识别技术领域,具体涉及一种基于稀疏表示的寄生虫虫卵识别方法。The invention belongs to the technical field of image recognition, and in particular relates to a method for recognizing parasite eggs based on sparse representation.

背景技术Background technique

建立在计算机图像处理与医学显微技术之上的寄生虫虫卵自动识别的关键是设计快速有效的图像识别算法,以往基于图像的寄生虫虫卵自动识别方法主要借助于先分离出虫卵目标,再提取目标的各种特征,最后结合一个分类器完成识别。举两例与本发明较相关的方法:(1)Derya Avci等人2009年结合Hu的7个不变矩与支持向量机在文献“An expertdiagnosis system for classification of human parasite eggs based on multi-class SVM”中对16种人体寄生虫虫卵进行识别,虽获得很高的识别率,但仅在图像较为理想的前提下才能达到,并未考虑干扰因素较多时的情况;(2)中国专利CN201110022426.3提出了一种结合寄生虫虫卵边缘直方图的方法对人体寄生虫虫卵进行形状识别,较好地克服弱边界的影响,提高了识别的可靠性,然而对于形状较为相似的寄生虫的形状识别还是存在不足。从现有方法看,特征的种类较多,除上述方法中描述的特征外还包括颜色、形状、大小、纹理等,特征选择得好坏很大程度决定了最后的识别率,同时初步定位目标并提取特征的步骤也较难准确的完成。分类器也多种多样,包括贝叶斯分类器、线性判别分析、支持向量机、神经网络、最小距离等,因为这些分类器对特征是敏感的,于是选择何种特征对于分类器是最优的往往难以确定,同时这些分类器对诸如噪声、遮挡、杂质等干扰因素的鲁棒性都较弱。The key to the automatic identification of parasite eggs based on computer image processing and medical microscopy technology is to design a fast and effective image recognition algorithm. In the past, the automatic identification method of parasite eggs based on images mainly relied on the separation of egg targets first. , and then extract various features of the target, and finally combine a classifier to complete the recognition. Give two examples of methods more relevant to the present invention: (1) Derya Avci et al. combined 7 invariant moments and support vector machines of Hu in 2009 in the document "An expert diagnosis system for classification of human parasite eggs based on multi-class SVM "Recognize 16 kinds of human parasite eggs. Although a high recognition rate is obtained, it can only be achieved under the premise that the image is relatively ideal, and the situation when there are many interference factors is not considered; (2) Chinese patent CN201110022426. 3 A method combined with the edge histogram of parasite eggs is proposed to recognize the shape of human parasite eggs, which overcomes the influence of weak boundaries and improves the reliability of recognition. However, for parasites with similar shapes Shape recognition is still lacking. Judging from the existing methods, there are many types of features. In addition to the features described in the above methods, they also include color, shape, size, texture, etc. The quality of feature selection largely determines the final recognition rate. And the step of extracting features is also difficult to complete accurately. There are also a variety of classifiers, including Bayesian classifiers, linear discriminant analysis, support vector machines, neural networks, minimum distance, etc., because these classifiers are sensitive to features, so which feature to choose is optimal for the classifier is often difficult to determine, and these classifiers are less robust to interference factors such as noise, occlusion, and impurities.

基于稀疏表示分类算法的应用还远未展开,这样一个基本的算法框架在不同的应用场合中,需要结合其他技术与技巧对算法进行改造和拓展,特别在数据降维、稀疏表示算法的选择、字典学习方面需根据具体需要确定。基于以上分析,首次将其应用于寄生虫虫卵识别问题中,实现单类或多类寄生虫虫卵的识别。The application of classification algorithms based on sparse representation is far from being developed. Such a basic algorithm framework needs to be transformed and expanded in combination with other technologies and techniques in different application occasions, especially in data dimensionality reduction, selection of sparse representation algorithms, Dictionary learning needs to be determined according to specific needs. Based on the above analysis, it is applied to the identification of parasite eggs for the first time to realize the identification of single or multiple types of parasite eggs.

发明内容Contents of the invention

本发明的目在于克服以往寄生虫虫卵识别方法对特征以及各种干扰因素较敏感的缺陷,结合适合大规模稀疏表示的Batch-OMP算法与K-SVD字典学习算法,提出了一种基于稀疏表示的寄生虫虫卵识别方法,在识别率和识别效率上以满足实际寄生虫虫卵自动识别系统的应用需求。The purpose of the present invention is to overcome the defect that the previous parasite egg identification method is sensitive to features and various interference factors, and combines the Batch-OMP algorithm suitable for large-scale sparse representation and the K-SVD dictionary learning algorithm to propose a method based on sparse The parasite egg identification method expressed in the paper can meet the application requirements of the actual parasite egg automatic identification system in terms of recognition rate and identification efficiency.

为了实现上述发明目的,本发明采用以下技术方案:一种基于稀疏表示的寄生虫虫卵识别方法,包括以下步骤:In order to achieve the above-mentioned purpose of the invention, the present invention adopts the following technical solutions: a method for identifying parasite eggs based on sparse representation, comprising the following steps:

(1)建立初始字典:单类识别建立初始单类字典,多类识别建立初始联合字典;(1) Establish an initial dictionary: establish an initial single-class dictionary for single-class recognition, and establish an initial joint dictionary for multi-class recognition;

(2)字典学习:使用K-SVD算法对字典进行学习,单类识别得到单类表示字典,多类识别得到联合表示字典和联合判别字典;(2) Dictionary learning: use the K-SVD algorithm to learn the dictionary, single-class recognition to obtain a single-class representation dictionary, multi-class recognition to obtain a joint representation dictionary and a joint discrimination dictionary;

(3)处理输入图像:对输入图像进行金字塔压缩,用滑动窗口的方式对压缩图像进行分块,步长可以选择为一个或多个像素;对所有图像块进行稀疏表示,单类识别的字典采用单类表示字典,多类识别的字典采用联合表示字典;(3) Processing the input image: Pyramid compression is performed on the input image, and the compressed image is divided into blocks by means of a sliding window, and the step size can be selected as one or more pixels; all image blocks are sparsely represented, and a single-class recognition dictionary A single-class representation dictionary is used, and a multi-class recognition dictionary uses a joint representation dictionary;

(4)计算重建误差矩阵;(4) Calculate the reconstruction error matrix;

(5)获取候选图像块:利用步骤(4)中得到的重建误差矩阵,寻找其所有的局部最小值,选取其中最小的k个值所对应的图像块作为候选目标;(5) Acquire candidate image blocks: use the reconstruction error matrix obtained in step (4) to find all its local minimum values, and select the image blocks corresponding to the smallest k values as candidate targets;

(6)识别候选图像块:对于单类识别情况,用阈值判别候选图像块,识别完成;对于多类识别情况,对候选图像块进行稀疏表示,使用联合判别字典,计算子字典重建误差,使用阈值方式对候选图像块进行判别与分类,识别完成。(6) Recognition of candidate image blocks: For single-class recognition, the threshold is used to distinguish candidate image blocks, and the recognition is completed; for multi-class recognition, the candidate image blocks are sparsely represented, and the joint discriminant dictionary is used to calculate the reconstruction error of the sub-dictionary, using The threshold method is used to discriminate and classify the candidate image blocks, and the recognition is completed.

步骤(1)中,建立初始字典步骤如下:In step (1), the steps to create an initial dictionary are as follows:

(1)选择若干杂质较少且具有代表性的寄生虫虫卵图像样本c·n个,其中c为≥1的整数,代表类数,n代表每个类的样本数;(1) Select a number of representative parasite egg image samples c·n with less impurities, where c is an integer ≥ 1, representing the number of classes, and n represents the number of samples of each class;

(2)采用高斯金字塔对c·n幅图像进行压缩,得到降维后的图像样本;(2) Gaussian pyramid is used to compress c n images to obtain image samples after dimensionality reduction;

(3)以d度为间距,对上一步中得到的每幅图像旋转一周得到360/d个图像样本(包括原图),于是总样本数为N=360·c·n/d;(3) With d degrees as the interval, rotate each image obtained in the previous step for one week to obtain 360/d image samples (including the original image), so the total number of samples is N=360 c n/d;

(4)将上一步得到的每个二维图像数据“拉长”为一维向量,再对每个向量进行标准化处理,使每个向量满足l2-范数为1;(4) "stretch" each two-dimensional image data obtained in the previous step into a one-dimensional vector, and then standardize each vector so that each vector satisfies the l 2 -norm of 1;

(5)把上一步得到的所有标准化的向量作为字典的原子,得到初始字典,若c=1,则得到的是单类识别的初始单类字典,若c>1,则得到的是多类识别的初始联合字典,包含c个子字典。(5) Use all the standardized vectors obtained in the previous step as the atoms of the dictionary to obtain the initial dictionary. If c=1, the initial single-class dictionary for single-class recognition is obtained. If c>1, the multi-class dictionary is obtained. The identified initial joint dictionary, which contains c sub-dictionaries.

步骤(2)中,使用K-SVD算法对字典进行学习,分为三种情况:In step (2), the K-SVD algorithm is used to learn the dictionary, which is divided into three situations:

(1)针对单类寄生虫虫卵识别,用K-SVD算法对初始单类字典进行学习,得到单类表示字典,该字典同时用于初步定位与分类,字典的体积根据原子向量的维数而定;(1) For the identification of single-type parasite eggs, the K-SVD algorithm is used to learn the initial single-type dictionary to obtain a single-type representation dictionary, which is used for preliminary positioning and classification at the same time. The volume of the dictionary is based on the dimension of the atomic vector depends;

(2)针对多类寄生虫虫卵识别,用K-SVD算法对整个初始联合字典进行学习,得到联合表示字典,该字典用于初步定位;(2) For the identification of multiple types of parasite eggs, use the K-SVD algorithm to learn the entire initial joint dictionary to obtain a joint representation dictionary, which is used for preliminary positioning;

(3)针对多类寄生虫虫卵识别,用K-SVD算法对每个初始子字典进行学习,再将所有学习之后的子字典联合得到联合判别字典,该字典用于分类,其体积远大于联合表示字典的体积。(3) For the identification of multiple types of parasite eggs, use the K-SVD algorithm to learn each initial sub-dictionary, and then combine all the learned sub-dictionaries to obtain a joint discriminant dictionary. This dictionary is used for classification and its volume is much larger than The union represents the volume of the dictionary.

步骤(3)中,对所有图像块进行稀疏表示是大规模稀疏表示,即使用Batch-OMP算法求解公式(1-1):In step (3), the sparse representation of all image blocks is a large-scale sparse representation, that is, the Batch-OMP algorithm is used to solve the formula (1-1):

min||x-Dθ||2s.t.||θ||0≤T     (1-1)min||x-Dθ|| 2 st||θ|| 0 ≤ T (1-1)

其中x为输入信号,D为步骤(2)中得到的单类表示字典或联合表示字典,θ为系数,T为稀疏性条件。where x is the input signal, D is the single-class representation dictionary or joint representation dictionary obtained in step (2), θ is the coefficient, and T is the sparsity condition.

步骤(4)中,计算重建误差矩阵,步骤如下:In step (4), calculate the reconstruction error matrix, the steps are as follows:

(1)利用公式(1-2)计算重建误差,得到所有图像块的重建误差[e1,e2,...eL],其中L为图像块数;(1) Use the formula (1-2) to calculate the reconstruction error, and obtain the reconstruction error [e 1 , e 2 ,...e L ] of all image blocks, where L is the number of image blocks;

ee == || || xx -- DθDθ || || 22 22 -- -- -- (( 11 -- 22 ))

(2)根据步骤(3)得到的图像块的顺序,将[e1,e2,...eL]按序排列成一个二维矩阵,得到的即为重建误差矩阵。(2) Arrange [e 1 , e 2 ,...e L ] into a two-dimensional matrix according to the order of the image blocks obtained in step (3), and the obtained reconstruction error matrix is obtained.

步骤(6)中,计算子字典重建误差,依据公式(1-3)计算。In step (6), the sub-dictionary reconstruction error is calculated according to the formula (1-3).

ee == || || xx -- DD. ii θθ || || 22 22 -- -- -- (( 11 -- 33 ))

其中Di为联合字典D=[D1,D2,...Dc]的子字典,其中i=1,2,...,c,c为类数。Where D i is a sub-dictionary of the joint dictionary D=[D 1 , D 2 , . . . D c ], where i=1, 2, . . . , c, where c is the number of classes.

本发明的基于稀疏表示的寄生虫虫卵识别方法,引入了基于稀疏表示的分类算法,增强了整个寄生虫虫卵识别算法对各种干扰因素的鲁棒性;引入了Batch-OMP算法用于大规模稀疏表示过程,提高了识别效率;引入了用高斯金字塔降维后的样本直接建立字典的方法,避免了提取虫卵目标特征的步骤,使识别过程变得更为简便;引入了建立误差矩阵并求其局部最小值的方法,避免了在初步定位过程中得到包含同一目标的不同图像块。The method for identifying parasite eggs based on sparse representation of the present invention introduces a classification algorithm based on sparse representation, which enhances the robustness of the entire parasite egg identification algorithm to various interference factors; introduces the Batch-OMP algorithm for The large-scale sparse representation process improves the recognition efficiency; introduces the method of directly building a dictionary with samples after Gaussian pyramid dimensionality reduction, avoids the step of extracting egg target features, and makes the recognition process easier; introduces the establishment error The method of finding the local minimum value of the matrix avoids getting different image blocks containing the same target in the preliminary positioning process.

附图说明Description of drawings

图1为本发明基于稀疏表示的寄生虫虫卵识别方法的流程图。Fig. 1 is a flow chart of the method for identifying parasite eggs based on sparse representation in the present invention.

图2选取的几类寄生虫虫卵样本。Figure 2 Selected several types of parasite egg samples.

图3初始单类字典。Figure 3. Initial one-class dictionary.

图4初始联合字典。Figure 4. Initial joint dictionary.

图5单类表示字典。Figure 5 represents a dictionary with a single class.

图6联合表示字典。Figure 6 jointly represents dictionaries.

图7联合判别字典。Fig. 7 Joint discriminant dictionary.

图8输入图像。Figure 8 Input image.

图9重建误差向量。Figure 9 Reconstruction error vector.

图10重建误差矩阵。Figure 10 Reconstruction error matrix.

具体实施方式Detailed ways

下面结合具体实施例对本发明做进一步的解释。The present invention will be further explained below in conjunction with specific examples.

如图1所示,为本发明的基于稀疏表示的寄生虫虫卵识别方法的流程,包括以下步骤:As shown in Figure 1, it is the process flow of the method for identifying parasite eggs based on sparse representation of the present invention, including the following steps:

(1)建立初始字典:单类识别建立初始单类字典,多类识别建立初始联合字典。第一步:选择若干杂质较少且具有代表性的寄生虫虫卵图像样本c·n个,其中c≥1,代表类数,n代表每个类的样本数,如图2所示。第二步:采用高斯金字塔对c·n幅图像进行压缩,得到降维后的图像样本。第三步:以d度为间距,对上一步得到的每幅图像旋转一周得到360/d个图像样本(包括原图),于是总样本数为N=360·c·n/d,可以取d=5。第四步:将上一步得到的每个二维图像数据“拉长”为一维向量,再对每个向量进行标准化处理,使每个向量满足l2-范数为1。第五步:把上一步得到的所有标准化的向量作为字典的原子,得到初始字典,若c=1,则得到的是初始单类字典,如图3所示,若c>1,则得到的是多类的初始联合字典,包含c个子字典,如图4所示。(1) Establish an initial dictionary: establish an initial single-class dictionary for single-class recognition, and establish an initial joint dictionary for multi-class recognition. Step 1: Select a number of representative parasite egg image samples c·n with less impurities, where c≥1 represents the number of classes, and n represents the number of samples of each class, as shown in Figure 2. Step 2: Compress c·n images with Gaussian pyramid to obtain dimensionally reduced image samples. Step 3: With d degrees as the interval, rotate each image obtained in the previous step for one week to obtain 360/d image samples (including the original image), so the total number of samples is N=360 c n/d, which can be taken d=5. Step 4: "stretch" each two-dimensional image data obtained in the previous step into a one-dimensional vector, and then standardize each vector so that each vector satisfies the l 2 -norm of 1. Step 5: Use all the standardized vectors obtained in the previous step as the atoms of the dictionary to obtain the initial dictionary. If c=1, the initial single-class dictionary is obtained, as shown in Figure 3. If c>1, the obtained is the initial joint dictionary of multiple classes, including c sub-dictionaries, as shown in Figure 4.

(2)字典学习:使用K-SVD算法对字典进行学习,单类识别得到单类表示字典,多类识别得到联合表示字典和联合判别字典,具体分为三种情况。第一种:针对单类寄生虫虫卵识别,用K-SVD算法对初始单类字典进行学习,得到单类表示字典,如图5所示,该字典同时用于初步定位与分类,字典的体积根据原子向量的维数而定。第二种:针对多类寄生虫虫卵识别,用K-SVD算法对整个初始联合字典进行学习,得到联合表示字典,如图6所示,该字典用于初步定位。第三种:针对多类寄生虫虫卵识别,用K-SVD算法对每个初始子字典进行学习,再将所有学习之后的子字典联合得到联合判别字典,如图7所示,该字典用于分类,其体积远大于联合表示字典的体积。(2) Dictionary learning: The K-SVD algorithm is used to learn the dictionary, a single-class representation dictionary is obtained for single-class recognition, and a joint representation dictionary and a joint discriminant dictionary are obtained for multi-class recognition. There are three cases. The first one: for the identification of single-type parasite eggs, the K-SVD algorithm is used to learn the initial single-type dictionary to obtain a single-type representation dictionary, as shown in Figure 5, the dictionary is used for preliminary positioning and classification at the same time, the dictionary The volume depends on the dimensionality of the atomic vectors. The second method: for the identification of multi-type parasite eggs, the K-SVD algorithm is used to learn the entire initial joint dictionary to obtain a joint representation dictionary, as shown in Figure 6, which is used for preliminary positioning. The third method: for the identification of multi-type parasite eggs, use the K-SVD algorithm to learn each initial sub-dictionary, and then combine all the learned sub-dictionaries to obtain a joint discriminant dictionary, as shown in Figure 7, the dictionary is used For classification, its volume is much larger than that of the joint representation dictionary.

(3)处理输入图像:对输入图像进行金字塔压缩,用滑动窗口的方式对压缩图像进行分块,步长可以选择为一个或多个像素;对所有图像块进行稀疏表示,单类识别的字典采用单类表示字典,多类识别的字典采用联合表示字典。(3) Processing the input image: Pyramid compression is performed on the input image, and the compressed image is divided into blocks by means of a sliding window, and the step size can be selected as one or more pixels; all image blocks are sparsely represented, and a single-class recognition dictionary A single-class representation dictionary is used, and a joint representation dictionary is used for multi-class recognition dictionaries.

在步骤(3)中,对所有图像块进行稀疏表示涉及大规模稀疏表示,使用Batch-OMP算法求解公式(1-1)。In step (3), sparse representation of all image patches involves large-scale sparse representation, and formula (1-1) is solved using Batch-OMP algorithm.

min||x-Dθ||2s.t.||θ||0≤T     (1-1)min||x-Dθ|| 2 st||θ|| 0 ≤ T (1-1)

其中x为输入信号,D为步骤(3)中得到的表示字典或联合表示字典,θ为系数,T为稀疏性条件。where x is the input signal, D is the representation dictionary or joint representation dictionary obtained in step (3), θ is the coefficient, and T is the sparsity condition.

(4)计算重建误差矩阵。第一步:利用公式(1-2)计算重建误差,得到所有图像块的重建误差[e1,e2,...eL],如图8(输入图像)和图9(重建误差向量)所示。(4) Calculate the reconstruction error matrix. Step 1: Use the formula (1-2) to calculate the reconstruction error, and obtain the reconstruction error [e 1 , e 2 ,...e L ] of all image blocks, as shown in Figure 8 (input image) and Figure 9 (reconstruction error vector ) shown.

ee == || || xx -- DθDθ || || 22 22 -- -- -- (( 11 -- 22 ))

第二步:根据图像块在原图的位置,将[e1,e2,...eL]按序排列成一个二维矩阵,得到的即为重建误差矩阵,如图10所示。Step 2: Arrange [e 1 , e 2 ,...e L ] into a two-dimensional matrix according to the position of the image block in the original image, and the obtained reconstruction error matrix is shown in Figure 10.

(5)获取候选图像块:利用步骤(4)中得到的重建误差矩阵,寻找其所有的局部最小值,选取其中最小的k个值所对应的图像块作为候选目标,如图10中的局部最小值点分布。(5) Acquire candidate image blocks: Use the reconstruction error matrix obtained in step (4) to find all its local minimum values, and select the image blocks corresponding to the smallest k values as candidate targets, as shown in Figure 10. distribution of minimum points.

(6)识别候选图像块:对于单类识别情况,用阈值判别候选图像块,识别完成;对于多类识别情况,对候选图像块进行稀疏表示,使用联合判别字典,计算子字典重建误差,使用阈值方式对候选目标进行判别与分类,对于重建误差都大于阈值的候选图像块被判定为不含已知类目标,对于重建误差小于阈值的候选图像块,其类别属于重建误差最小的子字典所对应的类,识别完成。(6) Recognition of candidate image blocks: For single-class recognition, the threshold is used to distinguish candidate image blocks, and the recognition is completed; for multi-class recognition, the candidate image blocks are sparsely represented, and the joint discriminant dictionary is used to calculate the reconstruction error of the sub-dictionary, using The threshold method is used to discriminate and classify the candidate objects. The candidate image blocks whose reconstruction errors are greater than the threshold are judged to contain no known objects. The corresponding class is identified.

在该步骤中计算子字典重建误差,依据公式(1-3)计算。In this step, the sub-dictionary reconstruction error is calculated according to formula (1-3).

ee == || || xx -- DD. ii θθ || || 22 22 -- -- -- (( 11 -- 33 ))

其中Di为联合字典D=[D1,D2,...Dc]的子字典,其中i=1,2,...,c,c为类数。Where D i is a sub-dictionary of the joint dictionary D=[D 1 , D 2 , . . . D c ], where i=1, 2, . . . , c, where c is the number of classes.

Claims (6)

1. the parasite egg recognition methods based on rarefaction representation is characterized in that, may further comprise the steps:
(1) set up initial dictionary: initial single category dictionary is set up in single class identification, and initial associating dictionary is set up in multiclass identification;
(2) dictionary study: use the K-SVD algorithm that dictionary is learnt, single class identification obtains single class and represents dictionary, and multiclass identification obtains uniting the expression dictionary and unites the differentiation dictionary;
(3) handle input picture: input picture is carried out pyramidal compression, with the mode of moving window compressed image is carried out piecemeal, step-length can be chosen as one or more pixels; The all images piece is carried out rarefaction representation, and the dictionary of single class identification adopts single class to represent dictionary, and the dictionary of multiclass identification adopts associating expression dictionary;
(4) calculate the reconstruction error matrix;
(5) obtain the candidate image piece: utilize the reconstruction error matrix that obtains in the step (4), seek its all local minimum, choose k the wherein minimum corresponding image block of value as candidate target;
(6) identification candidate image piece: for single class identification situation, differentiate the candidate image piece with threshold value, identification is finished; For multiclass identification situation, the candidate image piece is carried out rarefaction representation, use associating differentiation dictionary, calculate sub-dictionary reconstruction error, use threshold mode that the candidate image piece is differentiated and classification, identification is finished.
2. the parasite egg recognition methods based on rarefaction representation according to claim 1 is characterized in that: in the step (1), the initial dictionary step of described foundation is as follows:
(1) select the less and representative parasite egg image pattern cn of some impurity, wherein c is 〉=1 integer, represents the class number, and n represents the sample number of each class;
(2) adopt gaussian pyramid that cn width of cloth image is compressed, obtain the image pattern behind the dimensionality reduction;
(3) be spacing with the d degree, the every width of cloth image that obtains in the previous step is rotated a circle obtains 360/d image pattern (comprising former figure), so total sample number is N=360cn/d;
(4) each two-dimensional image data " elongation " that previous step is obtained is one-dimensional vector, again each vector is carried out standardization, makes each vector satisfy l 2-norm is 1;
(5) all standardized vectors that previous step is obtained obtain initial dictionary as the atom of dictionary, if c=1, what then obtain is initial single category dictionary of single class identification, if c>1, what then obtain is the initial associating dictionary of multiclass identification, comprises c sub-dictionary.
3. the parasite egg recognition methods based on rarefaction representation according to claim 1 is characterized in that: in the step (2), described use K-SVD algorithm is learnt dictionary, is divided into three kinds of situations:
(1) at single class parasite egg identification, with the K-SVD algorithm initial single category dictionary is learnt, obtained single class and represent dictionary, this dictionary is used for Primary Location and classification simultaneously, and the volume of dictionary is decided according to the dimension of former subvector;
(2) at the identification of multiclass parasite egg, with the K-SVD algorithm whole initial associating dictionary is learnt, obtained associating expression dictionary, this dictionary is used for Primary Location;
(3) at multiclass parasite egg identification, with the K-SVD algorithm each initial sub-dictionary is learnt, the sub-dictionary after all study is united obtain associating differentiation dictionary again, this dictionary is used for classifying, and its volume is much larger than uniting the volume of representing dictionary.
4. the parasite egg recognition methods based on rarefaction representation according to claim 1 is characterized in that: in the step (3), described all images piece is carried out rarefaction representation is extensive rarefaction representation, namely uses Batch-OMP algorithm solution formula (1-1)
min||x-Dθ|| 2s.t.||θ|| 0≤T (1-1)
Wherein x is input signal, and D is that the single class that obtains in the step (2) is represented dictionary or united the expression dictionary, and θ is coefficient, and T is sparse property condition.
5. the parasite egg recognition methods based on rarefaction representation according to claim 1 is characterized in that: in the step (4), and described calculating reconstruction error matrix, step is as follows:
(1) utilizes formula (1-2) to calculate reconstruction error, obtain the reconstruction error [e of all images piece 1, e 2... e L], wherein L is the image block number;
e = | | x - Dθ | | 2 2 - - - ( 1 - 2 )
(2) order of the image block that obtains according to step (3) is with [e 1, e 2... e L] be arranged in a two-dimensional matrix according to the order of sequence, what obtain is the reconstruction error matrix.
6. the parasite egg recognition methods based on rarefaction representation according to claim 1 is characterized in that: in the step (6), the sub-dictionary reconstruction error of described calculating calculates according to formula (1-3)
e = | | x - D i θ | | 2 2 - - - ( 1 - 3 )
D wherein iBe associating dictionary D=[D 1, D 2... D c] sub-dictionary, i=1 wherein, 2 ..., c, c are the class number.
CN201310181012.4A 2013-05-15 2013-05-15 Parasite egg recognition methods based on rarefaction representation Expired - Fee Related CN103268494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310181012.4A CN103268494B (en) 2013-05-15 2013-05-15 Parasite egg recognition methods based on rarefaction representation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310181012.4A CN103268494B (en) 2013-05-15 2013-05-15 Parasite egg recognition methods based on rarefaction representation

Publications (2)

Publication Number Publication Date
CN103268494A true CN103268494A (en) 2013-08-28
CN103268494B CN103268494B (en) 2016-06-15

Family

ID=49012121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310181012.4A Expired - Fee Related CN103268494B (en) 2013-05-15 2013-05-15 Parasite egg recognition methods based on rarefaction representation

Country Status (1)

Country Link
CN (1) CN103268494B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138826A (en) * 2015-08-10 2015-12-09 厦门大学 Raman signal reconstruction method under strong noise background
US9933425B2 (en) 2014-04-10 2018-04-03 MEP Equine Solutions LLC Method for the quantification of parasite eggs in feces
CN110119776A (en) * 2019-05-10 2019-08-13 长沙理工大学 Recognition methods and its system based on Multiple Kernel Learning K-SVD
CN111582276A (en) * 2020-05-29 2020-08-25 北京语言大学 Parasite egg identification method and system based on multi-feature fusion
TWI703513B (en) * 2019-01-31 2020-09-01 國立成功大學 Egg counting device and method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080170623A1 (en) * 2005-04-04 2008-07-17 Technion Resaerch And Development Foundation Ltd. System and Method For Designing of Dictionaries For Sparse Representation
CN102073872A (en) * 2011-01-20 2011-05-25 中国疾病预防控制中心寄生虫病预防控制所 Image-based method for identifying shape of parasite egg
CN102891999A (en) * 2012-09-26 2013-01-23 南昌大学 Combined image compression/encryption method based on compressed sensing
CN102968635A (en) * 2012-11-23 2013-03-13 清华大学 Image visual characteristic extraction method based on sparse coding

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080170623A1 (en) * 2005-04-04 2008-07-17 Technion Resaerch And Development Foundation Ltd. System and Method For Designing of Dictionaries For Sparse Representation
CN102073872A (en) * 2011-01-20 2011-05-25 中国疾病预防控制中心寄生虫病预防控制所 Image-based method for identifying shape of parasite egg
CN102891999A (en) * 2012-09-26 2013-01-23 南昌大学 Combined image compression/encryption method based on compressed sensing
CN102968635A (en) * 2012-11-23 2013-03-13 清华大学 Image visual characteristic extraction method based on sparse coding

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9933425B2 (en) 2014-04-10 2018-04-03 MEP Equine Solutions LLC Method for the quantification of parasite eggs in feces
US10094829B2 (en) 2014-04-10 2018-10-09 MEP Equine Solutions LLC Method for the quantification of parasite eggs in feces
US10677796B2 (en) 2014-04-10 2020-06-09 MEP Equine Solutions LLC Method for the quantification of parasite eggs in feces
CN105138826A (en) * 2015-08-10 2015-12-09 厦门大学 Raman signal reconstruction method under strong noise background
TWI703513B (en) * 2019-01-31 2020-09-01 國立成功大學 Egg counting device and method thereof
CN110119776A (en) * 2019-05-10 2019-08-13 长沙理工大学 Recognition methods and its system based on Multiple Kernel Learning K-SVD
CN111582276A (en) * 2020-05-29 2020-08-25 北京语言大学 Parasite egg identification method and system based on multi-feature fusion
CN111582276B (en) * 2020-05-29 2023-09-29 北京语言大学 Recognition method and system for parasite eggs based on multi-feature fusion

Also Published As

Publication number Publication date
CN103268494B (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN109117826B (en) A vehicle recognition method based on multi-feature fusion
CN104574445B (en) A kind of method for tracking target
CN104966085B (en) A kind of remote sensing images region of interest area detecting method based on the fusion of more notable features
CN102509091B (en) Airplane tail number recognition method
CN104392241B (en) A kind of head pose estimation method returned based on mixing
CN101561867B (en) Human body detection method based on Gauss shape feature
TW201926140A (en) Method, electronic device and non-transitory computer readable storage medium for image annotation
CN105389593A (en) Image object recognition method based on SURF
CN102521561B (en) Face identification method on basis of multi-scale weber local features and hierarchical decision fusion
CN102163281B (en) Real-time human body detection method based on AdaBoost frame and colour of head
CN103218610B (en) The forming method of dog face detector and dog face detecting method
CN105447532A (en) Identity authentication method and device
CN103903013A (en) Optimization algorithm of unmarked flat object recognition
CN103488974A (en) Facial expression recognition method and system based on simulated biological vision neural network
CN103473571A (en) Human detection method
CN111126240A (en) A three-channel feature fusion face recognition method
Redondo-Cabrera et al. All together now: Simultaneous object detection and continuous pose estimation using a hough forest with probabilistic locally enhanced voting
CN104636749A (en) Target object detection method and device
CN101964060B (en) SAR variant target identification method based on local textural feature
CN105512599A (en) Face identification method and face identification system
CN103268494B (en) Parasite egg recognition methods based on rarefaction representation
CN104268598A (en) Human leg detection method based on two-dimensional scanning lasers
CN105447503A (en) Sparse-representation-LBP-and-HOG-integration-based pedestrian detection method
CN103902978A (en) Face detection and identification method
CN105718937A (en) Multi-class object classification method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160615

Termination date: 20170515

CF01 Termination of patent right due to non-payment of annual fee