CN103593652A - Cucumber disease identification method based on cucumber leaf symptom image processing - Google Patents

Cucumber disease identification method based on cucumber leaf symptom image processing Download PDF

Info

Publication number
CN103593652A
CN103593652A CN201310521319.4A CN201310521319A CN103593652A CN 103593652 A CN103593652 A CN 103593652A CN 201310521319 A CN201310521319 A CN 201310521319A CN 103593652 A CN103593652 A CN 103593652A
Authority
CN
China
Prior art keywords
eta
sigma
cucumber
image
leaf
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
CN201310521319.4A
Other languages
Chinese (zh)
Other versions
CN103593652B (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.)
Xijing University
Original Assignee
Xijing 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 Xijing University filed Critical Xijing University
Priority to CN201310521319.4A priority Critical patent/CN103593652B/en
Publication of CN103593652A publication Critical patent/CN103593652A/en
Application granted granted Critical
Publication of CN103593652B publication Critical patent/CN103593652B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A cucumber disease identification method based on cucumber leaf symptom image processing comprises the steps that cucumber disease leaf scab images are segmented; cucumber disease leaf image identification features are extracted, dimensionality reduction is carried out on feature vectors, and at last cucumber disease identification is carried out. The method resolves the problems that the identification rate of cucumber diseases based on leaves is not high and identification effects are instable due to the facts that according to an existing cucumber disease identification method and technique, cucumber disease leaf image components are complex, scabs on disease cucumber leaves are irregular in arrangement and color, and shapes and colors of scabs of leaves of different diseases are not the same, and has the advantages of being high in feature extraction speed and identification rate, stable in identification effect, higher in practicability and the like.

Description

A kind of cucumber disease recognition methods of processing based on cucumber leaves symptom image
Technical field
The present invention relates to image processes and the applied technical field of pattern-recognition in cucumber disease identification, particularly a kind of cucumber disease recognition methods of processing based on cucumber leaves symptom image.
Background technology
Cucumber is distributed widely in a plurality of areas of China and even the world, is one of edible vegetables of multinational resident, and human body is had to a lot of benefits.But cucumber is a kind of cucumber that easily catches an illness, common cucumber disease kind just has kind more than ten.Accurately judgement cucumber disease kind is the prerequisite of cucumber disease control.Traditional cucumber disease detects and substantially relies on agricultural producer's eye estimate to judge, this detection method has a lot of shortcomings, as strong in subjectivity, recognition speed is slow, identification intensity is large, misclassification rate is high, real-time is poor etc., is difficult to meet the demand of cucumber disease real-time monitoring system on a large scale.Cucumber leaves scab and correlated characteristic thereof be judgement cucumber disease kind and the extent of injury thereof important evidence [Tian Youwen, etc. the research of the cucumber in solar-greenhouse disease identification of processing based on image. agricultural research, 2006,2:151-153].From current result of study, adopt computing machine and image processing techniques can be objective, in time, the state of an illness of identifying and diagnosing cucumber exactly, thereby realize the control of cucumber disease and accurately applying pesticides [Cen Zhe is prosperous, Deng. the cucumber anthracnose based on color image color statistical nature and the Study of recognition of brown spot. gardening journal, 2007,34 (6): 1425-1430].But by leaf symptom, detecting cucumber disease is not a nothing the matter.Reason is: the kind of (1) current cucumber disease is a lot, causes disease blade to present diversified symptom; (2) along with the popularization of China's high-quality new breeds of cucumbers and diversification plantation, for creating of more kinds of cucumber diseases suitable condition (as greenhouse gardening etc.), caused serious ascendant trend of being of cucumber disease.These situations have brought challenge also to the cucumber disease detection method research based on cucumber leaves symptom.
Summary of the invention
In order to overcome the shortcoming of above-mentioned prior art, the object of the present invention is to provide a kind of cucumber disease recognition methods of processing based on cucumber leaves symptom image, the advantage such as have that feature extraction speed is fast, discrimination is high, recognition effect is stable and practical.
In order to achieve the above object, the technical scheme that the present invention takes is:
The cucumber disease recognition methods that cucumber leaves symptom image is processed, comprises the following steps:
The first step, cuts apart cucumber disease leaf spot lesion image: first, cucumber disease leaf image is converted to digital picture matrix; Then, utilize the level and smooth cucumber leaves of closure operation image border, fill the breach of leaf spot lesion inside, and the separating part of leaf spot lesion is linked together; Again computing is opened in the scab region obtaining, obtain leaf spot lesion region; Finally, cucumber leaves scab area image after mathematical morphology filter and former cucumber leaves coloured image are carried out to multiplying, obtain cucumber disease leaf spot lesion image, the scab image obtaining is converted to three kinds of primary colours matrix R of red, green, blue, G, B, establishes line number and columns that M, N are respectively matrix R, G, B;
Second step, cucumber disease leaf image recognition feature is extracted: utilize following formula (1) that R, G, B are converted to tone H, brightness S, tri-matrixes of saturation degree I:
H = arccos { [ R - G ] + [ R - B ] / 2 ( R - B ) 2 + ( R - B ) ( G - b ) } / 360 S = R + G + B 3 [ min ( R , G , B ) ] I = R + G + B 3 - - - ( 1 )
Utilize following formula (2) by R, G, B, to be obtained the gray matrix Gray of scab:
Gray=0.299R+0.587G+0.114B (2)
Utilize following formula (3) to calculate two kinds by R, G, B and stimulate color matrices X, Z:
X = 0.607 R + 0.174 G + 0.200 B Z = 0.066 R + 1.111 B - - - ( 3 )
Utilize following formula (4) by R, G, B, to be calculated two kinds of color matrices Cb, Cr of YCbCr color space:
Cb = - 0.148 R - 0.291 G + 0.439 B + 128 Cr = 0.439 R - 0.368 G - 0.071 B + 128 - - - ( 4 )
Any one M * N ties up matrix J ijfirst moment μ 1, second moment μ 2with third moment μ 2be expressed as:
μ 1 = 1 M · N Σ i = 1 M Σ j = 1 N J ij μ 2 = [ 1 M · N Σ i = 1 M Σ j = 1 N ( J ij - μ 1 ) 2 ] 1 2 μ 3 = [ 1 M · N Σ i = 1 M Σ i = 1 N ( J ij - μ 1 ) 3 ] 1 3 - - - ( 5 )
Utilize formula (5) to calculate respectively first moment, second moment and the third moment of 11 color component R, G of leaf spot lesion image, B, H, S, I, Gray, X, Z, Cb, Cr, obtain altogether 33 real numbers,
Utilize following formula (6) to calculate average, variance, the degree of bias, peak value, energy, the entropy of the tone matrix H of scab, be expressed as ω i(i=1,2,3,4,5,6), obtain 6 real numbers altogether:
ω 1 = Σ b = 0 L - 1 bρ ( b ) ω 2 = Σ b = 0 L - 1 ( b - μ ) 2 ρ ( b ) ω 3 = 1 σ 3 Σ b = 0 L - 1 ( b - μ ) 3 ρ ( b ) ω 4 = 1 σ 4 Σ b = 0 L - 1 ( b - μ ) 4 ρ ( b ) ω 5 = Σ b = 0 L - 1 [ ρ ( b ) ] 2 ω 6 = - Σ b = 0 L - 1 ρ ( b ) log [ ρ ( b ) ] - - - ( 6 )
In formula,
Figure BDA0000403421880000042
the number that r (b) is b for element value in matrix H,
Utilize following formula (7) to calculate the p+q level square M that scab image converts gray level image Gray Leaf scab region to pqwith center square μ pq:
M pq = Σ ( x , y ) ∈ Δ x p · y q · Grap ( x , y ) μ pq = Σ ( x , y ) ∈ Δ ( x - x - ) p · ( y - y - ) q Grap ( x , y ) - - - ( 7 )
In formula, p, q are two positive integers, Δ=(x, y) | Grap (x, y) < 119} is leaf spot lesion region,
μ pqafter regularization, be expressed as
&eta; pq = &mu; pq &mu; 00 &gamma; - - - ( 8 )
In formula, γ=p+q+1 is the regularization factor,
Utilize regularization centre distance η pq, by following formula (9), calculated 7 of scab region of Gray not bending moments, be expressed as Hu i(i=1,2,3,4,5,6,7):
Hu 1 = &eta; 20 + &eta; 02 Hu 2 = ( &eta; 20 - &eta; 02 ) 2 + 4 &eta; 11 2 Hu 3 = ( &eta; 30 - 3 &eta; 12 ) 2 + ( &eta; 03 - 3 &eta; 21 ) 2 Hu 4 = ( &eta; 30 + &eta; 12 ) 2 + ( &eta; 21 ) 2 Hu 5 = ( &eta; 30 - 3 &eta; 12 ) ( &eta; 30 + &eta; 12 ) [ ( &eta; 30 + &eta; 12 ) 2 - 3 ( &eta; 03 + &eta; 21 ) 2 ] + ( 3 &eta; 21 - &eta; 03 ) ( &eta; 21 + &eta; 03 ) [ 3 ( &eta; 30 + &eta; 21 ) 2 - ( &eta; 03 + &eta; 21 ) 2 ] Hu 6 = ( &eta; 20 - &eta; 02 ) [ ( &eta; 30 + &eta; 21 ) 2 - ( &eta; 03 + &eta; 21 ) 2 ] + 4 &eta; 11 ( &eta; 30 + &eta; 12 ) ( &eta; 03 + &eta; 21 ) Hu 7 = ( 3 &eta; 21 - &eta; 03 ) ( &eta; 30 + &eta; 12 ) [ ( &eta; 30 + &eta; 12 ) 2 - 3 ( &eta; 03 + &eta; 21 ) 2 ] + ( 3 &eta; 12 - &eta; 30 ) ( &eta; 21 + &eta; 03 ) [ 3 ( &eta; 30 + &eta; 12 ) 2 - ( &eta; 03 + &eta; 21 ) 2 ] - - - ( 9 )
By formula (1) above, to formula (9), obtain 46 eigenwerts of each width cucumber disease leaf image, these 46 eigenwerts are rearranged to a proper vector T according to sequencing;
The 3rd step, proper vector is carried out to Dimensionality Reduction: according to the first step above, calculate all cucumber disease leaf image characteristic of correspondence vectors, it is carried out to Dimensionality Reduction,
Be provided with K class n width cucumber disease leaf image { Im 1, Im 2..., Im n, classification numbering is designated as C 1, C 2..., C k, C wherein iclass leaf image has n iwidth, { Im 1, Im 2..., Im nvectorial set of characteristic of correspondence be designated as { T 1, T 2..., T n,
Calculate n proper vector { T 1, T 2..., T nmean value T,
T - = 1 n &Sigma; i = 1 n T i - - - ( 10 )
Calculate C iclass n ithe mean value of individual proper vector
Figure BDA0000403421880000053
T C i &OverBar; = 1 n i &Sigma; X j &Element; C i T j - - - ( 11 )
Between class scatter matrix S bwith Scatter Matrix S in class wbe defined as respectively
S B = &Sigma; i = 1 K N i | | T C i &OverBar; - T &OverBar; | | S W = &Sigma; i = 1 K &Sigma; X j &Element; C i | | T j - T C i &OverBar; | | - - - ( 12 )
In formula, || || represent compute euclidian distances,
By S band S wsetting up objective optimization function is
Figure BDA0000403421880000062
Solve formula (13), calculate (S b-S w) yojan proper vector a corresponding to maximum d eigenwert of a=λ a 1, a 2..., a d, wherein λ is eigenwert, the dimension that d is low dimensional feature vector, by a 1, a 2..., a dform a projection matrix A=[a 1, a 2..., a d],
Set of eigenvectors { T by A to n leaf spot lesion image 1, T 2..., T ncarry out Dimensionality Reduction and obtain low-dimensional recognition feature vector collection { Y 1, Y 2..., Y n, Y wherein i=A transpositiont i(i=1,2 ..., n),
By following formula (14), the proper vector T of any width leaf image is carried out to Dimensionality Reduction, obtains low-dimensional recognition feature vector Y,
Y=A transpositiont (14)
The low-dimensional recognition feature vector of the cucumber disease leaf image for training classifier obtaining is input to recognition template database, and the low-dimensional recognition feature vector of each leaf image is corresponding with the cucumber scab information that pre-deposits system;
The 4th step, cucumber disease identification: the data in template database are input to nearest neighbor classifier, train this sorter, then the low-dimensional recognition feature vector of cucumber leaves image to be tested is input to nearest neighbor classifier, finds out in 1 nearest neighbor point the same classification classification of maximum classifications as disease blade to be tested of counting.
Beneficial effect of the present invention is:
The object of the invention is to overcome existing cucumber disease recognition methods and technology arranges random and shade differs, also equal reason mutually not of the shape of different sick leaf spot lesions of planting and color because of the scab on cucumber disease leaf image complicated component, the sick leaf of cucumber, the problem such as make that the discrimination of the cucumber disease based on blade is not high and recognition effect is unstable, the advantage such as have that feature extraction speed is fast, discrimination is high, recognition effect is stable and practical.At present, patent of the present invention realizes on common PC computing machine, and operating system is not required.Be mainly used in computer based cucumber disease classification recognition system, can be for the cucumber disease identification in actual production.
Embodiment
Below in conjunction with example, the present invention is described in detail.
The cucumber disease recognition methods that cucumber leaves symptom image is processed, comprises the following steps:
The first step, cuts apart cucumber disease leaf spot lesion image: first, utilize the function ' imread ' in Matlab software to convert all cucumber disease leaf images to digital picture matrix; Then, design the square structure element of 3 * 3, utilize closure operation smoothing blade image boundary and fill the breach of leaf spot lesion inside, then the separating part of leaf spot lesion is linked together; Again computing is opened to eliminate scab noise around in the scab region obtaining, obtain leaf spot lesion region, finally, cucumber leaves scab area image after mathematical morphology filter and former cucumber leaves coloured image are carried out to multiplying, obtain cucumber disease leaf spot lesion image, the scab image obtaining is converted to three kinds of primary colours matrix R of red, green, blue, G, B, establishes line number and columns that M, N are respectively matrix R, G, B;
Second step, cucumber disease leaf image recognition feature is extracted: first, just R, G, B are converted to three color matrixes (tone H, brightness S, saturation degree I), gray matrix Gray, two stimulates color matrices (X and Z) and two color matrices (Cb and Cr).Describe in detail as follows:
R, G, B are converted to tone H, brightness S, tri-matrixes of saturation degree I, and conversion formula is:
H = arccos { [ R - G ] + [ R - B ] / 2 ( R - B ) 2 + ( R - B ) ( G - b ) } / 360 S = R + G + B 3 [ min ( R , G , B ) ] I = R + G + B 3 - - - ( 1 )
R, G, B are converted to gray matrix Gray, and conversion formula is as follows:
Gray=0.299R+0.587G+0.114B (2)
By R, G, B, calculating two kinds stimulates color matrices X, Z, and computing formula is as follows:
X = 0.607 R + 0.174 G + 0.200 B Z = 0.066 R + 1.111 B - - - ( 3 )
Two kinds of color matrices Cb, Cr by R, G, B, being calculated YCbCr color space, computing formula is:
Cb = - 0.148 R - 0.291 G + 0.439 B + 128 Cr = 0.439 R - 0.368 G - 0.071 B + 128 - - - ( 4 )
Calculate respectively matrix R, G, B, H, S, I, Gray, X, Z, the Cb of 11 M that 11 colors of scab image obtained above are corresponding * N dimension, first moment, second moment and the third moment of Cr, computing formula is:
&mu; 1 = 1 M &CenterDot; N &Sigma; i = 1 M &Sigma; j = 1 N J ij &mu; 2 = [ 1 M &CenterDot; N &Sigma; i = 1 M &Sigma; j = 1 N ( J ij - &mu; 1 ) 2 ] 1 2 &mu; 3 = [ 1 M &CenterDot; N &Sigma; i = 1 M &Sigma; i = 1 N ( J ij - &mu; 1 ) 3 ] 1 3 - - - ( 5 )
In formula, J ijfor any one matrix, M, N are respectively matrix J ijline number and columns, J ijfirst moment be μ 1, second moment is μ 2with third moment be μ 2.
The average, variance, the degree of bias, peak value, energy, the entropy that calculate tone matrix H, be expressed as ω i(i=1,2,3,4,5,6), computing formula is:
&omega; 1 = &Sigma; b = 0 L - 1 b&rho; ( b ) &omega; 2 = &Sigma; b = 0 L - 1 ( b - &mu; ) 2 &rho; ( b ) &omega; 3 = 1 &sigma; 3 &Sigma; b = 0 L - 1 ( b - &mu; ) 3 &rho; ( b ) &omega; 4 = 1 &sigma; 4 &Sigma; b = 0 L - 1 ( b - &mu; ) 4 &rho; ( b ) &omega; 5 = &Sigma; b = 0 L - 1 [ &rho; ( b ) ] 2 &omega; 6 = - &Sigma; b = 0 L - 1 &rho; ( b ) log [ &rho; ( b ) ] - - - ( 6 )
In formula,
Figure BDA0000403421880000092
the number that r (b) is b for element value in matrix H.
Calculate the p+q level square M in the gray level image Gray Leaf scab region after the conversion of scab image pqwith center square μ pq:
M pq = &Sigma; ( x , y ) &Element; &Delta; x p &CenterDot; y q &CenterDot; Grap ( x , y ) &mu; pq = &Sigma; ( x , y ) &Element; &Delta; ( x - x - ) p &CenterDot; ( y - y - ) q Grap ( x , y ) - - - ( 7 )
In formula,
Figure BDA0000403421880000094
Figure BDA0000403421880000095
p, q are two positive integers, and Δ is leaf spot lesion region, Δ=(x, y) | Grap (x, y) < 119}.
To μ pqcarry out obtaining after regularization
&eta; pq = &mu; pq &mu; 00 &gamma; - - - ( 8 )
In formula, γ=p+q+1 is the regularization factor.Utilize η pqcalculate 7 of scab region C of Gray not bending moment Hu i(i=1,2,3,4,5,6,7), formula is as follows:
Hu 1 = &eta; 20 + &eta; 02 Hu 2 = ( &eta; 20 - &eta; 02 ) 2 + 4 &eta; 11 2 Hu 3 = ( &eta; 30 - 3 &eta; 12 ) 2 + ( &eta; 03 - 3 &eta; 21 ) 2 Hu 4 = ( &eta; 30 + &eta; 12 ) 2 + ( &eta; 21 ) 2 Hu 5 = ( &eta; 30 - 3 &eta; 12 ) ( &eta; 30 + &eta; 12 ) [ ( &eta; 30 + &eta; 12 ) 2 - 3 ( &eta; 03 + &eta; 21 ) 2 ] + ( 3 &eta; 21 - &eta; 03 ) ( &eta; 21 + &eta; 03 ) [ 3 ( &eta; 30 + &eta; 21 ) 2 - ( &eta; 03 + &eta; 21 ) 2 ] Hu 6 = ( &eta; 20 - &eta; 02 ) [ ( &eta; 30 + &eta; 21 ) 2 - ( &eta; 03 + &eta; 21 ) 2 ] + 4 &eta; 11 ( &eta; 30 + &eta; 12 ) ( &eta; 03 + &eta; 21 ) Hu 7 = ( 3 &eta; 21 - &eta; 03 ) ( &eta; 30 + &eta; 12 ) [ ( &eta; 30 + &eta; 12 ) 2 - 3 ( &eta; 03 + &eta; 21 ) 2 ] + ( 3 &eta; 12 - &eta; 30 ) ( &eta; 21 + &eta; 03 ) [ 3 ( &eta; 30 + &eta; 12 ) 2 - ( &eta; 03 + &eta; 21 ) 2 ] - - - ( 9 )
46 eigenwerts of each width cucumber leaves image are rearranged to a proper vector T according to sequencing, be that T is comprised of three parts: first moment, second moment and the third moment of 11 components R of (1) scab image, G, B, H, S, I, Gray, X, Z, Cb, Cr, totally 33 data; (2) average, variance, the degree of bias, peak value, energy, the entropy of the tone matrix H of scab image, altogether to 6 data; (3) 7 of the scab region of the gray level image Gray of scab image bending moments not.
The 3rd step, carries out Dimensionality Reduction to proper vector: establish total K class n width cucumber disease leaf image { Im 1, Im 2..., Im n, classification numbering is designated as C 1, C 2..., C k, C iclass has n iindividual sample image,
Figure BDA0000403421880000102
{ Im 1, Im 2..., Im nvectorial set of characteristic of correspondence be designated as { T 1, T 2..., T n.
Calculate the mean value of n proper vector
T - = 1 n &Sigma; i = 1 n T i - - - ( 10 )
Calculate C iclass N imean value in the class of individual proper vector
T C i &OverBar; = 1 n i &Sigma; X j &Element; C i T j - - - ( 11 )
Utilize Euclidean distance, by
Figure BDA0000403421880000105
with
Figure BDA0000403421880000106
calculating scab image is between class scatter matrix S bwith Scatter Matrix S in class w, computing formula is
S B = &Sigma; i = 1 K N i | | T C i &OverBar; - T &OverBar; | | S W = &Sigma; i = 1 K &Sigma; X j &Element; C i | | T j - T C i &OverBar; | | - - - ( 12 )
By S band S wset up objective optimization function
Figure BDA0000403421880000112
In formula, A is projection matrix to be asked,
Calculate (S b-S w) yojan proper vector a corresponding to maximum d eigenwert of a=λ a 1, a 2..., a d, wherein λ is eigenwert, the dimension that d is low dimensional feature vector.By a 1, a 2..., a dform a projection matrix A=[a 1, a 2..., a d].Set of eigenvectors { T by A to n leaf spot lesion image 1, T 2..., T ncarry out Dimensionality Reduction and obtain low-dimensional recognition feature vector collection { Y 1, Y 2..., Y n, i.e. Y i=A transpositiont i(i=1,2 ..., n).For any one cucumber leaves image to be identified, calculate its 46 features, form a proper vector T new, then calculate its low-dimensional recognition feature vector
Y new=A transpositiont new(14)
By { the Y obtaining 1, Y 2..., Y nbeing input to recognition template database, the low-dimensional recognition feature vector of each leaf image is corresponding with the cucumber scab information that pre-deposits system.
The 4th step, cucumber disease identification: by the data { Y in template database 1, Y 2..., Y nbe input to nearest neighbor classifier, train this sorter, then by the low-dimensional recognition feature vector Y of cucumber leaves image to be tested newbe input to nearest neighbor classifier, find out in 1 nearest neighbor point the same classification classification of maximum classifications as disease blade to be tested of counting.The assorting process of sorter is divided into three steps: first, produce training sample set, make the recognition feature template data of training set be divided into discrete type numerical value class according to existing criteria for classification; Secondly, with the basis that is categorized as of feature templates data, the low-dimensional recognition feature vector of test pattern is found to 1 arest neighbors, adopt Euclidean distance as the distinguishing rule of the similarity degree between sample, similarity is large is arest neighbors; Finally, cucumber disease classification to be tested is finally output as that maximum class of number in arest neighbors class.

Claims (1)

1. a cucumber disease recognition methods of processing based on cucumber leaves symptom image, is characterized in that, comprises the following steps:
The first step, cuts apart cucumber disease leaf spot lesion image: first, cucumber disease leaf image is converted to digital picture matrix; Then, utilize the level and smooth cucumber leaves of closure operation image border, fill the breach of leaf spot lesion inside, and the separating part of leaf spot lesion is linked together; Again computing is opened in the scab region obtaining, obtain leaf spot lesion region; Finally, just the cucumber leaves scab area image after mathematical morphology filter and former cucumber leaves coloured image carry out multiplying, obtain cucumber disease leaf spot lesion image, the scab image obtaining is converted to three kinds of primary colours matrix R of red, green, blue, G, B, establishes line number and columns that M, N are respectively matrix R, G, B;
Second step, cucumber disease leaf image recognition feature is extracted: utilize following formula (1) that R, G, B are converted to tone H, brightness S, tri-matrixes of saturation degree I:
H = arccos { [ R - G ] + [ R - B ] / 2 ( R - B ) 2 + ( R - B ) ( G - b ) } / 360 S = R + G + B 3 [ min ( R , G , B ) ] I = R + G + B 3 - - - ( 1 )
Utilize following formula (2) by R, G, B, to be obtained the gray matrix Gray of scab:
Gray=0.299R+0.587G+0.114B (2)
Utilize following formula (3) to calculate two kinds by R, G, B and stimulate color matrices X, Z:
X = 0.607 R + 0.174 G + 0.200 B Z = 0.066 R + 1.111 B - - - ( 3 )
Utilize following formula (4) by R, G, B, to be calculated two kinds of color matrices Cb, Cr of YCbCr color space:
Cb = - 0.148 R - 0.291 G + 0.439 B + 128 Cr = 0.439 R - 0.368 G - 0.071 B + 128 - - - ( 4 )
Any one M * N ties up matrix J ijfirst moment μ 1, second moment μ 2with third moment μ 2be expressed as:
&mu; 1 = 1 M &CenterDot; N &Sigma; i = 1 M &Sigma; j = 1 N J ij &mu; 2 = [ 1 M &CenterDot; N &Sigma; i = 1 M &Sigma; j = 1 N ( J ij - &mu; 1 ) 2 ] 1 2 &mu; 3 = [ 1 M &CenterDot; N &Sigma; i = 1 M &Sigma; i = 1 N ( J ij - &mu; 1 ) 3 ] 1 3 - - - ( 5 )
Utilize formula (5) to calculate respectively first moment, second moment and the third moment of 11 color component R, G of leaf spot lesion image, B, H, S, I, Gray, X, Z, Cb, Cr, obtain altogether 33 real numbers,
Utilize following formula (6) to calculate average, variance, the degree of bias, peak value, energy, the entropy of the tone matrix H of scab, be expressed as ω i(i=1,2,3,4,5,6), obtain 6 real numbers altogether:
&omega; 1 = &Sigma; b = 0 L - 1 b&rho; ( b ) &omega; 2 = &Sigma; b = 0 L - 1 ( b - &mu; ) 2 &rho; ( b ) &omega; 3 = 1 &sigma; 3 &Sigma; b = 0 L - 1 ( b - &mu; ) 3 &rho; ( b ) &omega; 4 = 1 &sigma; 4 &Sigma; b = 0 L - 1 ( b - &mu; ) 4 &rho; ( b ) &omega; 5 = &Sigma; b = 0 L - 1 [ &rho; ( b ) ] 2 &omega; 6 = - &Sigma; b = 0 L - 1 &rho; ( b ) log [ &rho; ( b ) ] - - - ( 6 )
In formula,
Figure FDA0000403421870000024
the number that r (b) is b for element value in matrix H,
Utilize following formula (7) to calculate the p+q level square M that scab image converts gray level image Gray Leaf scab region to pqwith center square μ pq:
M pq = &Sigma; ( x , y ) &Element; &Delta; x p &CenterDot; y q &CenterDot; Grap ( x , y ) &mu; pq = &Sigma; ( x , y ) &Element; &Delta; ( x - x - ) p &CenterDot; ( y - y - ) q Grap ( x , y ) - - - ( 7 ) In formula,
Figure FDA0000403421870000032
Figure FDA0000403421870000033
p, q are two positive integers, Δ=(x, y) | Grap (x, y) < 119} is leaf spot lesion region,
μ pqafter regularization, be expressed as
&eta; pq = &mu; pq &mu; 00 &gamma; - - - ( 8 ) In formula, γ=p+q+1 is the regularization factor,
Utilize regularization centre distance η pq, by following formula (9), calculated 7 of scab region of Gray not bending moments, be expressed as Hu i(i=1,2,3,4,5,6,7):
Hu 1 = &eta; 20 + &eta; 02 Hu 2 = ( &eta; 20 - &eta; 02 ) 2 + 4 &eta; 11 2 Hu 3 = ( &eta; 30 - 3 &eta; 12 ) 2 + ( &eta; 03 - 3 &eta; 21 ) 2 Hu 4 = ( &eta; 30 + &eta; 12 ) 2 + ( &eta; 21 ) 2 Hu 5 = ( &eta; 30 - 3 &eta; 12 ) ( &eta; 30 + &eta; 12 ) [ ( &eta; 30 + &eta; 12 ) 2 - 3 ( &eta; 03 + &eta; 21 ) 2 ] + ( 3 &eta; 21 - &eta; 03 ) ( &eta; 21 + &eta; 03 ) [ 3 ( &eta; 30 + &eta; 21 ) 2 - ( &eta; 03 + &eta; 21 ) 2 ] Hu 6 = ( &eta; 20 - &eta; 02 ) [ ( &eta; 30 + &eta; 21 ) 2 - ( &eta; 03 + &eta; 21 ) 2 ] + 4 &eta; 11 ( &eta; 30 + &eta; 12 ) ( &eta; 03 + &eta; 21 ) Hu 7 = ( 3 &eta; 21 - &eta; 03 ) ( &eta; 30 + &eta; 12 ) [ ( &eta; 30 + &eta; 12 ) 2 - 3 ( &eta; 03 + &eta; 21 ) 2 ] + ( 3 &eta; 12 - &eta; 30 ) ( &eta; 21 + &eta; 03 ) [ 3 ( &eta; 30 + &eta; 12 ) 2 - ( &eta; 03 + &eta; 21 ) 2 ] - - - ( 9 )
46 eigenwerts that can be accessed each width cucumber disease leaf image by formula (1) to (9) above, rearrange a proper vector T these 46 eigenwerts according to sequencing;
The 3rd step, proper vector is carried out to Dimensionality Reduction: according to the first step above, calculate all cucumber disease leaf image characteristic of correspondence vectors, it is carried out to Dimensionality Reduction,
Be provided with K class n width cucumber disease leaf image { Im 1, Im 2..., Im n, classification numbering is designated as C 1, C 2..., C k, C wherein iclass leaf image has n iwidth, { Im 1, Im 2..., Im nvectorial set of characteristic of correspondence be designated as { T 1, T 2..., T n,
N proper vector { T 1, T 2..., T nmean value be
T - = 1 n &Sigma; i = 1 n T i - - - ( 10 )
C iclass n ithe mean value of individual proper vector is
T C i &OverBar; = 1 n i &Sigma; X j &Element; C i T j - - - ( 11 )
Between class scatter matrix S bwith Scatter Matrix S in class wbe defined as respectively
S B = &Sigma; i = 1 K N i | | T C i &OverBar; - T &OverBar; | | S W = &Sigma; i = 1 K &Sigma; X j &Element; C i | | T j - T C i &OverBar; | | - - - ( 12 ) In formula, || || represent compute euclidian distances,
By S band S wset up objective optimization function
Solve formula (13), calculate (S b-S w) yojan proper vector a corresponding to maximum d eigenwert of a=λ a 1, a 2..., a d, wherein λ is eigenwert, the dimension that d is low dimensional feature vector, by a 1, a 2..., a dform a projection matrix A=[a 1, a 2..., a d],
Set of eigenvectors { T by A to n leaf spot lesion image 1, T 2..., T ncarry out Dimensionality Reduction and obtain low-dimensional recognition feature vector collection { Y 1, Y 2..., Y n, Y wherein i=A transpositiont i(i=1,2 ..., n),
By following formula (14), the proper vector T of any width leaf image is carried out to Dimensionality Reduction, obtains low-dimensional recognition feature vector Y,
Y=A transpositiont (14)
The low-dimensional recognition feature vector of the cucumber disease leaf image for training classifier obtaining is input to recognition template database, and the low-dimensional recognition feature vector of each leaf image is corresponding with the cucumber scab information that pre-deposits system;
The 4th step, cucumber disease identification: the data in template database are input to nearest neighbor classifier, train this sorter, then the low-dimensional recognition feature vector of cucumber leaves image to be tested is input to nearest neighbor classifier, finds out in 1 nearest neighbor point the same classification classification of maximum classifications as disease blade to be tested of counting.
CN201310521319.4A 2013-10-28 2013-10-28 A kind of cucumber disease recognition methods processed based on cucumber leaves symptomatic picture Expired - Fee Related CN103593652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310521319.4A CN103593652B (en) 2013-10-28 2013-10-28 A kind of cucumber disease recognition methods processed based on cucumber leaves symptomatic picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310521319.4A CN103593652B (en) 2013-10-28 2013-10-28 A kind of cucumber disease recognition methods processed based on cucumber leaves symptomatic picture

Publications (2)

Publication Number Publication Date
CN103593652A true CN103593652A (en) 2014-02-19
CN103593652B CN103593652B (en) 2016-08-24

Family

ID=50083784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310521319.4A Expired - Fee Related CN103593652B (en) 2013-10-28 2013-10-28 A kind of cucumber disease recognition methods processed based on cucumber leaves symptomatic picture

Country Status (1)

Country Link
CN (1) CN103593652B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105160354A (en) * 2015-08-19 2015-12-16 师韵 Apple disease identifying method based on sparse representation
CN105261045A (en) * 2015-09-12 2016-01-20 黑龙江八一农垦大学 Digital method for rapidly evaluating loss severity of alfalfa diseases and insects
CN105760871A (en) * 2014-12-14 2016-07-13 仲恺农业工程学院 Plant leaf spot disease resistance identification new method
CN106952300A (en) * 2017-04-28 2017-07-14 深圳前海弘稼科技有限公司 Method and system, computer equipment based on image recognition pathological changes of plant
CN107145885A (en) * 2017-05-03 2017-09-08 金蝶软件(中国)有限公司 A kind of individual character figure character recognition method and device based on convolutional neural networks
CN110022674A (en) * 2016-10-13 2019-07-16 麦凯恩食品有限公司 For detecting method, medium and the system of Potyvirus in crop image
CN110235882A (en) * 2019-06-28 2019-09-17 南京农业大学 A kind of accurate variable chemical application to fruit tree robot based on multisensor
CN113269750A (en) * 2021-05-26 2021-08-17 海南大学 Banana leaf disease image detection method and system, storage medium and detection device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060274928A1 (en) * 2005-06-02 2006-12-07 Jeffrey Collins System and method of computer-aided detection
CN101074925A (en) * 2007-06-12 2007-11-21 浙江大学 Method for diagnosing plant-leaf botrytis in visible and near-infrared spectral characteristic band
CN102214306A (en) * 2011-06-16 2011-10-12 中国农业大学 Leaf disease spot identification method and device
CN102759528A (en) * 2012-07-09 2012-10-31 陕西科技大学 Method for detecting diseases of crop leaves
CN103077529A (en) * 2013-02-27 2013-05-01 电子科技大学 System for analyzing plant leaf features based on image scanning

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060274928A1 (en) * 2005-06-02 2006-12-07 Jeffrey Collins System and method of computer-aided detection
CN101074925A (en) * 2007-06-12 2007-11-21 浙江大学 Method for diagnosing plant-leaf botrytis in visible and near-infrared spectral characteristic band
CN102214306A (en) * 2011-06-16 2011-10-12 中国农业大学 Leaf disease spot identification method and device
CN102759528A (en) * 2012-07-09 2012-10-31 陕西科技大学 Method for detecting diseases of crop leaves
CN103077529A (en) * 2013-02-27 2013-05-01 电子科技大学 System for analyzing plant leaf features based on image scanning

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760871A (en) * 2014-12-14 2016-07-13 仲恺农业工程学院 Plant leaf spot disease resistance identification new method
CN105160354A (en) * 2015-08-19 2015-12-16 师韵 Apple disease identifying method based on sparse representation
CN105261045A (en) * 2015-09-12 2016-01-20 黑龙江八一农垦大学 Digital method for rapidly evaluating loss severity of alfalfa diseases and insects
CN105261045B (en) * 2015-09-12 2020-04-03 黑龙江八一农垦大学 Digital method for rapidly evaluating loss degree of alfalfa diseases and insect pests
CN110022674B (en) * 2016-10-13 2022-04-01 麦凯恩食品有限公司 Methods, media, and systems for detecting potato virus in crop images
CN110022674A (en) * 2016-10-13 2019-07-16 麦凯恩食品有限公司 For detecting method, medium and the system of Potyvirus in crop image
US10964009B2 (en) 2016-10-13 2021-03-30 Mccain Foods Limited Method, medium, and system for detecting potato virus in a crop image
US11645743B2 (en) 2016-10-13 2023-05-09 Resson Aerospace Corporation Method, medium, and system for detecting potato virus in a crop image
CN106952300A (en) * 2017-04-28 2017-07-14 深圳前海弘稼科技有限公司 Method and system, computer equipment based on image recognition pathological changes of plant
CN107145885A (en) * 2017-05-03 2017-09-08 金蝶软件(中国)有限公司 A kind of individual character figure character recognition method and device based on convolutional neural networks
CN110235882A (en) * 2019-06-28 2019-09-17 南京农业大学 A kind of accurate variable chemical application to fruit tree robot based on multisensor
CN110235882B (en) * 2019-06-28 2021-09-14 南京农业大学 Accurate variable fruit tree pesticide application robot based on multiple sensors
CN113269750A (en) * 2021-05-26 2021-08-17 海南大学 Banana leaf disease image detection method and system, storage medium and detection device

Also Published As

Publication number Publication date
CN103593652B (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN103593652A (en) Cucumber disease identification method based on cucumber leaf symptom image processing
Waghmare et al. Detection and classification of diseases of grape plant using opposite colour local binary pattern feature and machine learning for automated decision support system
AU2020102885A4 (en) Disease recognition method of winter jujube based on deep convolutional neural network and disease image
CN105184309B (en) Classification of Polarimetric SAR Image based on CNN and SVM
CN107977671A (en) A kind of tongue picture sorting technique based on multitask convolutional neural networks
CN106650806A (en) Cooperative type deep network model method for pedestrian detection
CN107590489A (en) Object detection method based on concatenated convolutional neutral net
CN103824059A (en) Facial expression recognition method based on video image sequence
CN104268593A (en) Multiple-sparse-representation face recognition method for solving small sample size problem
CN105335716A (en) Improved UDN joint-feature extraction-based pedestrian detection method
CN105787519A (en) Tree species classification method based on vein detection
CN112464942B (en) Computer vision-based overlapped tobacco leaf intelligent grading method
CN102915446A (en) Plant disease and pest detection method based on SVM (support vector machine) learning
CN107563389A (en) A kind of corps diseases recognition methods based on deep learning
CN101551853A (en) Human ear detection method under complex static color background
CN111598001B (en) Identification method for apple tree diseases and insect pests based on image processing
CN102184404B (en) Method and device for acquiring palm region in palm image
CN104268590A (en) Blind image quality evaluation method based on complementarity combination characteristics and multiphase regression
CN104680192B (en) A kind of electric power image classification method based on deep learning
Arefi et al. Development of an expert system based on wavelet transform and artificial neural networks for the ripe tomato harvesting robot
Ouyang et al. The research of the strawberry disease identification based on image processing and pattern recognition
CN107169508A (en) A kind of cheongsam Image emotional semantic method for recognizing semantics based on fusion feature
CN103390170A (en) Surface feature type texture classification method based on multispectral remote sensing image texture elements
CN106682653A (en) KNLDA-based RBF neural network face recognition method
CN110516615A (en) Human and vehicle shunting control method based on convolutional neural networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20160824

Termination date: 20191028

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