CN102426606A - Method for retrieving multi-feature image based on particle swarm algorithm - Google Patents

Method for retrieving multi-feature image based on particle swarm algorithm Download PDF

Info

Publication number
CN102426606A
CN102426606A CN2011103587288A CN201110358728A CN102426606A CN 102426606 A CN102426606 A CN 102426606A CN 2011103587288 A CN2011103587288 A CN 2011103587288A CN 201110358728 A CN201110358728 A CN 201110358728A CN 102426606 A CN102426606 A CN 102426606A
Authority
CN
China
Prior art keywords
image
particle
sigma
prime
feature
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.)
Pending
Application number
CN2011103587288A
Other languages
Chinese (zh)
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.)
Nanjing University of Finance and Economics
Original Assignee
Nanjing University of Finance and Economics
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 Nanjing University of Finance and Economics filed Critical Nanjing University of Finance and Economics
Priority to CN2011103587288A priority Critical patent/CN102426606A/en
Publication of CN102426606A publication Critical patent/CN102426606A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for retrieving a multi-feature image based on a particle swarm algorithm. The method comprises the following steps of: firstly, according to a retrieved image, extracting a plurality of feature vectors of the retrieved image, and normalizing, thereby acquiring a feature distance; fusing the feature distance; acquiring a comprehensive feature fused distance according to the optimized weight distribution; retrieving according to image similarity; feeding a result back to a user; and retrieving the image similar to the retrieved image. According to image information provided by the user, the multi-feature of the image is extracted and a multi-feature distance is calculated; the particle swarm algorithm is utilized to optimize parameters; the multi-feature distance is fused and then is matched with an appointed image feature bank; the image similar to the retrieved image is efficiently retrieved; the retrieval accuracy is promoted; and the method is conveniently adopted by the user.

Description

A kind of multi-feature image retrieval method based on particle cluster algorithm
Technical field
The invention belongs to digital image processing field, relate to a kind of multi-feature image retrieval method based on particle cluster algorithm.
Background technology
CBIR (content-based image retrieval; CBIR) more and more become a popular research field both domestic and external; It has merged the technological achievement in fields such as Flame Image Process, image recognition and image data base; Make full use of the index that low-level image features such as self-contained characteristic attribute of image such as color, texture, shape set up and retrieve, thereby image retrieval means more effectively more accurately can be provided.The single image characteristic can provide the part authentication information of image, but insufficient, and many characteristics of image are carried out Combination application authentication information fully can be provided relatively comprehensively.Based on to the taking all factors into consideration of local characteristics of image and many characteristics combination, the image retrieval algorithm of many characteristics combination has outstanding retrieval performance, and its result for retrieval more meets the visual experience of human eye.And the weight of how to distribute the different images characteristic is a problem.
At present, image retrieval appraisal procedure commonly used is the PVR curve, and the PVR curve is by recall ratio and precision ratio definition.Suppose that A is the image collection relevant with query image all in the test pattern storehouse, the image collection that B returns for retrieval.A is the number of the associated picture that inquires; B is the number of the uncorrelated image that inquires; C is relevant with detected image, but the number that does not retrieve.
Being defined as of recall ratio:
recall = P ( B | A ) = a a + c ;
(1)
Being defined as of precision ratio:
precision = P ( A ∩ B ) P ( B ) = a a + b ;
(2)
Behind the recall ratio and precision ratio of the result for retrieval that calculates piece image, if with the x axle of recall ratio as coordinate, precision ratio then can be drawn out the PVR curve of image searching result as the y axle of coordinate.If the PVR curve is f (x; Y); F (x then; Y) area that surrounds with the x-y axle claims that for
Figure BDA0000107714990000021
S (f) is the PVR index, is designated as E.Then E is big more, and image retrieval performance is good more; E is more little, and image retrieval performance is poor more.If E=1, the image retrieval performance reaches best so, its PVR curve be f (x, y)=1.
Particle swarm optimization algorithm PSO (particle swarm optimization) is a kind of algorithm based on the intelligence of trooping, and it through the information sharing between the single particle, seeks the optimum point in complex search space through the foraging behavior of the simulation flock of birds or the shoal of fish.The PSO algorithm is a kind of optimisation technique based on the population operation.As far as optimization problem, each particle is represented possible separating in the PSO algorithm.Each particle is in the desired positions that iterative process lived through in the colony, is exactly preferably separating of being found of this particle itself.The desired positions that whole colony lived through, what just the whole colony of foot found at present preferably separates.The former is called individual extreme value, and the latter is called global extremum.Each particle is all brought in constant renewal in oneself through above-mentioned two extreme values, thereby produces colony of new generation, and just whole colony carries out thorough search to separating the zone in this process.
If the population size of particle is n, then i (i=1,2 ..., n) individual particle position can be expressed as x i, its individual extreme value is designated as pBest i, its speed is used v iExpression, the global extremum of colony is represented with gBest.So arbitrary particle i will upgrade oneself speed and position according to following formula:
v i(t+1)=ωv i(t)+c 1r 1(t)(pBest i(t)-x i(t))+c 2r 2(t)(gBest i(t)-x i(t))
(3)
x i(t+1)=x i(t)+v i(t+1)
(4)
C wherein 1, c 2Be constant, be called the study factor or accelerator coefficient; r 1And r 2It is the random number on (0,1); ω is inertia weight (inertia weight).
The individual extreme value of each particle is upgraded with following formula:
pBest i ( t + 1 ) = x i ( t + 1 ) , if x i ( t + 1 ) &GreaterEqual; pBest i ( t ) pBes t i ( t ) , if x i ( t + 1 ) < pBest i ( t )
(5)
Global extremum to all particles is chosen as follows:
gBest(t+1)=max(pBest i(t+1)),(i=1,2,…,n)
(6)
Value to each particle's velocity q is limited at [v Max, v Max] in, v MaxValue get the width of search volume usually. the setting that inertia weight is added normally is reduced to 0.2 from 0.9 linearity.
Formula (3) is made up of three parts, and first is the previous speed of particle, and the state that particle is present has been described; Second portion is a cognitive part (Cognition Modal).The thinking of expression particle itself; Third part is society's part (Social Modal).Three parts have determined the space search ability of particle jointly.The ability of the balance overall situation and Local Search has played in first.Second portion makes particle that enough strong ability of searching optimum arranged, and avoids local minimum.Third part has embodied interparticle information sharing.
Summary of the invention
Weights optimum problem how the object of the present invention is to provide a kind of multi-feature image retrieval method based on particle cluster algorithm when solving that many characteristics of image merge in the image retrieval.The image information that this method can provide according to the user goes out many characteristic distances through many feature calculation of extracting image, utilizes particle cluster algorithm to optimize weighting parameter, and many characteristic distances are merged, and matees with the characteristics of image storehouse of appointment then.Thereby retrieve efficiently and the image of the image similarity that is retrieved, improve retrieval rate, satisfy customer requirements.
The objective of the invention is to realize through following technical scheme:
A kind of multi-feature image retrieval method based on particle cluster algorithm; It is characterized in that: the image information that this method provides according to the user; Many feature calculation through extracting image go out many characteristic distances, utilize particle cluster algorithm to optimize weighting parameter, and many characteristic distances are merged; Mate with the characteristics of image storehouse of appointment then, thereby retrieve efficiently and the image of the image similarity that is retrieved; Specifically comprise the steps:
Step 1: establish P tBe the image that to retrieve, N width of cloth image arranged, P in the image data base iBe i width of cloth image in the shape library, 1≤i≤N;
Step 2: extract a plurality of proper vectors of image that are retrieved, normalization, characteristic set is W={W 1, W 2..., W K, wherein K is the characteristic number of extracting, K>=1;
Step 3: obtain P according to following formula t, P iAbout characteristic W KCharacteristic distance D i
D ( q , t ) = ( &Sigma; m = 0 M - 1 | w q ( m ) - w t ( m ) | 2 ) 1 2
(7)
Step 4: with distance B i normalization, obtain D according to following formula i' mistake! Do not find Reference source.;
d i &prime; = d i - mD + 3 &sigma; 6 &sigma; d i &prime; &Element; ( mD - 3 &sigma; , mD + 3 &sigma; ) 0 d i &prime; &le; mD - 3 &sigma; 1 d i &prime; &GreaterEqual; mD - 3 &sigma;
(8)
Wherein MD = 1 n &Sigma; i = 1 n d i | n = 1,2 , . . . , N
&sigma; 2 = 1 n &Sigma; i = 1 n ( d i - mD ) 2 n = 1,2 , . . . , N
Step 5: K characteristic distance merged according to following formula;
D Is=x 1D ' 1+ x 2D ' 2+ ... + x KD ' K, x wherein 1..., x K∈ [0,1], and x 1+ ... + x K=1; (9)
Utilize particle cluster algorithm to carry out parameter optimization, obtain optimized weights and distribute Xbest;
Step 6: after distributing Xbest according to optimized weights, obtain the comprehensive characteristics fusion distance, and retrieve, the result is fed back to the user, retrieve and the image of the image similarity that is retrieved according to image similarity.
Further providing below utilizes particle cluster algorithm to carry out the step of parameter optimization:
Step1: suppose that search space is that K ties up and population has m particle, i particle represented the parameter vector X of a K dimension i=(x I1, x I2..., x IK), (i=1,2 ..., m), promptly i particle is X in the position of the search volume of K dimension iIn other words, each particle position is the feasible solution that potential weights distribute, a random initializtion in allowed limits.
Step2: with X iObjective function of substitution just can calculate its fitness, the quality of weighing according to the size of fitness.Objective function f (X i) be made as many signature searchs result's under the current weight PVR index.
Step3: i the particle speed of " circling in the air " also is the vector of a K dimension, is expressed as: V i=(v I1, v I2..., v IK), (i=1,2 ..., m), random initializtion in allowed limits.
Step4: the optimal location note that i particle oneself searches is made P i=(p I1, p I2..., p IK), (i=1,2 ..., m).The P of each particle iThe coordinate initialization is set to its current location, and calculates the fitness value (weights that are current individual representative distribute the PVR index result who retrieves) of its corresponding individual extreme point.
Step5: the optimal location note that whole population searches is up to now made P g=(p G1, p G2..., p GK).P gBe initialized as in the step best individual body position in all individual extreme values, be current best weight value distribution.
Step6: will come particle is carried out iterative operation according to following formula:
V’ ik=ω·V ik+c 1·rand 1·(P ik-X ik)+c 2·rand 2·(P gk-X ik)
(10)
X’ ik=X ik+V ik
(11)
I=1 wherein, 2 ..., m, ω is an inertia weight, is a constant between [0,1]; c 1And c 2Being learning rate, also is a non-negative constant; Rand 1And rand 2It is the random number that produces between [0,1]; V Ik∈ [V Max, V Max], and V MaxIt is the speed maximal value of an appointment.Can find out that from top two formula the moving direction of particle is by three part decisions, own original speed V Ik, with the range difference (P of the own optimum position that experiences Ik-X Ik) and with the range difference (P of the optimum position of colony experience Gk-X Ik), and respectively by weight coefficient ω, c 1And c 2Determine its relative importance.The standard that iteration stops is the optimal-adaptive degree that perhaps reaches appointment according to maximum iteration time.
Step7: the individual extreme value of each particle is upgraded with following formula:
P i &prime; = X i &prime; , if f ( X i &prime; ) &GreaterEqual; f ( P i ) P i , if f ( X i &prime; ) < f ( P i )
(12)
Estimate each particle, calculate the fitness value of particle,, then upgrade this particle position if be better than the current individual extreme value of this particle.
Step8: the global extremum to all particles is chosen as follows:
P g′=P imax
(13)
P wherein Imax' be the maximum Pi ' of adaptive value.
Step9: new particle more, whether check meets termination condition, if current iterations has reached predefined maximum times (or reach least error require), then stops iteration, the output optimum solution, otherwise continue more new particle.
The present invention has overcome the optimization problem of weighting parameter when many characteristics of image merge in the image retrieval; The image information that can provide according to the user; Many feature calculation through extracting image go out many characteristic distances; Utilize particle cluster algorithm to optimize weighting parameter, many characteristic distances are merged, mate with the characteristics of image storehouse of appointment then.Thereby retrieve efficiently and the image of the image similarity that is retrieved, improve retrieval rate, satisfy customer requirements.
The present invention is applicable in the Digital Image Processing, can retrieve efficiently and the image of the image similarity that is retrieved, and retrieval rate is high.
Description of drawings
Fig. 1 carries out the schematic flow sheet of image retrieval for the present invention.
Fig. 2 is 100 images randomly drawing in 1000 trademark image storehouses.
Fig. 3, Fig. 5, Fig. 7 are 3 sub-class libraries in trademark image storehouse.
Fig. 4, Fig. 6, Fig. 8 are single characteristic key PVR curve of averaging of income and average comprehensive characteristics retrieval PVR curve behind the 3 sub-category library searchings.
HU, ZERNIKE, LEGENDRE represent the result for retrieval based on Hu square, zernike square and legendre square respectively among the figure; The GFD representative is based on the result for retrieval of broad sense fourier descriptors; The ENTROPY representative is comprehensively represented based on the result for retrieval after many characteristic distances fusions of particle cluster algorithm based on information entropy characteristic key result.
Embodiment
Below in conjunction with accompanying drawing the present invention is elaborated, but protection scope of the present invention is not limited only to this.
Embodiment 1
A kind of image search method of comprehensive a plurality of region shape characteristics; The selected characteristic descriptor comprises: Hu square, Zernike square, Legendre square, generalized Fourier descriptor (generic Fourier descriptor; GFD) and the information entropy characteristic, introduce as follows respectively:
1.1Hu square
Hu has proposed invariant moments first in 1962 theoretical, is characterized in being satisfied with image translation, flexible and invariable rotary, and square is used for shape recognition.That Hu utilizes is normalized two, third central moment has been constructed 7 invariant moments that translation, rotation and change of scale had unchangeability.Invariant moments is a kind of statistical nature of image, and as in probability, replacing its distribution law to describe the statistical nature of this stochastic variable with each rank square of stochastic variable, each rank square that it utilizes gradation of image to distribute is described the characteristic that gradation of image distributes.
Being defined as of geometric invariant moment: suppose a bianry image be f (x, y), width is W, highly is H, its p+q rank square is:
m pq = &Sigma; x = 0 W - 1 &Sigma; y = 0 H - 1 x p y q * f ( x , y ) , p , q = 0,1,2 , . . . (14)
Its centre distance is defined as:
&mu; pq = 1 m 00 p + q 2 + 1 &Sigma; x = 0 W - 1 &Sigma; y = 0 H - 1 ( x - x 0 ) p ( y - y 0 ) q * f ( x , y ) , p , q = 0,1,2 , . . . (15)
In the formula x 0 = m 10 m 00 , y 0 = m 01 m 00 , (x 0, y 0) be the barycenter of regional graphics.
μ PqUnchangeability with Pan and Zoom, but,, eliminate rotation difference therefore through combination second-order moment around mean and third central moment to rotating sensitivity, obtain 7 invariant features squares:
η 1=μ 0220
(16)
&eta; 2 = ( &mu; 20 - &mu; 02 ) 2 + 4 &mu; 11 2
(17)
η 3=(μ 30-3μ 12) 2+(3μ 2103) 2
(18)
η 4=(μ 3012) 2+(μ 2103) 2
(19)
η 5=(μ 30-3μ 12)(μ 3012)[(μ 3012) 2-3(μ 2103) 2]+(3μ 2103)(μ 2103)[3(μ 3012) 2-(μ 2103) 2]
(20)
η 6=(μ 2002)[(μ 3012) 2-(μ 2103) 2]+4μ 113012)(μ 2103)
(21)
η 7=(3μ 2103)(μ 3012)[(μ 3012) 2-3(μ 2103) 2]+(3μ 1230)(μ 2103)[3(μ 3012) 2-(μ 2103) 2]
(22)
Therefore the characteristics of image vector with unchangeability that is produced by geometric invariant moment is only 7; The advantage of using geometric invariant moment be it be a very compact shape represent and also calculated amount little; Shortcoming is that the minority invariant that has only the low order square to derive is not enough to describe accurately shape, and the invariant moments of high-order is difficult to again obtain.
1.2Zernike square
1980, Irishman Teague was the basis with the Zernike orthogonal polynomial, had provided two-dimensional function f (x, the definition of Zernike matrix y).Plural number Zernike square obtains from the Zernike polynomial expression:
V pq ( x , y ) = V pq ( r cos &theta; , r sin &theta; ) = R pq ( r ) edp ( j ^ q&theta; ) (23)
In the formula, r is that (x is y) to the radius of shape barycenter for point; θ is the angle of r and x axle; P, q are integer, and 0≤| q|≤p, p-|q| are even number.The Zernike polynomial expression is the complete quadrature plural number of a group in a unit circle base.(p, q) being defined as of rank plural number Zernike square:
Z pq = p - 1 &pi; &Sigma; x &Sigma; y f ( x , y ) V pq * ( x , y ) , ( x 2 + y 2 &le; 1 ) (24)
(x y) is bianry image to f in the formula.Because the field of definition of Zernike basis function in unit circle, so calculate before the Zernike square, needs to specify unit circle, to obtain the unchangeability of yardstick and translation, utilizes the amplitude of Zernike square can arrive rotational invariance again.
For the image of H * W, the definition of Zernike square is following:
Z pq = &lambda; z ( p , N ) &Sigma; i = 0 W - 1 &Sigma; j = 0 H - 1 R pq ( r ij ) exp ( - j ^ q&theta; ij ) f ( i , j ) (25)
Wherein R Pq ( r ) = &Sigma; k = 0 ( p - | q | ) / 2 ( - 1 ) k ( p - k ) ! k ! ( ( p + | q | ) / 2 - k ) ! ( ( p - | q | ) / 2 - k ) ! r p - 2 k (26)
With bianry image f (x, y) in the unit of the being mapped to garden, need do like down conversion:
r ij = x i 2 + y j 2 , &theta; ij = tan - 1 ( y j x i ) , x i=c 1xi+c 2,y j=c 1yj+c 2 (27)
&lambda; z ( p , N ) = P + 1 ( W - 1 ) ( H - 1 ) , c 1 x = 2 W - 1 , c 1 y = 2 H - 1 , c 2=-1 (28)
The Zernike square is a kind of plural square based on orthogonal polynomial, than other square littler information redundancy property is arranged, and has good rotational invariance, can construct any High Order Moment, with preceding 7 invariant composition characteristics vector of Zernike square.
1.3Legendre square
It is the Legendre square of kernel function that Teague has also proposed with the Legendre polynomial expression simultaneously, and the Legendre polynomial expression has constituted a complete orthogonal set in unit circle.(p+q) the Legendre square on rank is defined as:
L pq = ( 2 p + 1 ) ( 2 q + 1 ) 4 &Sigma; x &Sigma; y p p ( y ) f ( x , y ) (29)
Wherein
Figure BDA00001077149900000810
is called the Legendre polynomial expression.Legendre is a kind of orthogonal moment, can describe the characteristic of image well, has reconfigurability, advantage that amount of redundant information is few, chooses 18 invariant composition characteristics vectors.
1.4 generalized Fourier descriptor
In order to overcome the shortcoming of Zernike square, Zhang and Lu proposed the generalized Fourier descriptor (genericFourier descriptor, GFD).GFD has adopted the plane polar coordinates Fourier transform of revising; Promptly image is carried out the polar coordinates sampling, the information of sampling is repainted under rectangular cartesian coordinate, again the image under this rectangular coordinate is done Fourier transform; Got an angular frequency territory, 4 amplitude frequency domain * 9, totally 36 frequency coefficients.
GFD = { | PF ( 0,0 ) | area , | PF ( 0,1 ) | | PF ( 0,0 ) | , . . . , | PF ( 0 , n ) | | PF ( 0,0 ) | , . . . , | PF ( m , 0 ) | PF ( 0,0 ) | , . . . , | PF ( m , n ) | | PF ( 0,0 ) | } (30)
The GFD method has been chosen the amplitude information of these frequency coefficients, and does normalization and handle, and obtains having translation, the eigenmatrix of convergent-divergent and rotational invariance.
1.5 information entropy characteristic
One of founder of information theory Claude E.Shannon is defined as information entropy the probability of occurrence of Discrete Stochastic incident.So-called information entropy is abstract concept on the mathematics, can be understood as information entropy the probability of occurrence of certain customizing messages.In concrete computing information entropy, Shanon is defined as the ambiguity size that is eliminated in the system with its value, and ambiguity is described with random occurrence in theory of probability.For digital picture, the pixel of different gray scales is filled different zones with different probability distribution, thereby makes pictures different show different shape facilities.And for the two-value trademark image, its pixel grey scale has only 0 and 1 two kind of value, and therefore, its information entropy can be write as:
H(p 0,p 1)=-p 0logp 0-p 1logp 1 (31)
Wherein, p 0, p 1It is respectively 0,1 two kind of probability that pixel occurs in image.
When the information entropy of computed image, for effectively reflection image distributed intelligence spatially, need image be carried out piecemeal, calculate the entropy of each subimage block then respectively.Piecemeal information entropy matrix description picture shape characteristic, its accuracy is relevant with the fine granularity of image block.That is to say that each subimage block is more little, the original image piecemeal is many more, and the description of characteristics of image is just accurate more.This paper carries out 64 * 64 piecemeal to 256 * 256 trademark image, and promptly each sub-block size is 4 * 4.Calculate the characteristic that the singular value of entropy matrix is come descriptor entropy matrix then.
1, choose the two-value trademark image of 1000 256x256 from MPEG, set up the trademark image database, Fig. 2 is 100 trademark images selecting at random.The trademark image storehouse is divided into 7 sub-class libraries.Image search method has the following steps, and sees Fig. 1:
Step 1: establish P tBe the image that to retrieve, 1000 width of cloth images arranged, P in the image data base iBe i width of cloth image in the shape library, 1≤i≤N.
Step 2: extract five proper vectors of the image that is retrieved, normalization, characteristic set is W={W 1, W 2..., W 5.
Step 3: utilize following formula to calculate P t, P iAbout characteristic W iCharacteristic distance D i
D ( q , t ) = ( &Sigma; m = 0 M - 1 | w q ( m ) - w t ( m ) | 2 ) 1 2 (32)
Step 4: utilize following formula with distance B i normalization, obtain D i' mistake! Do not find Reference source.。
d i &prime; = d i - mD + 3 &sigma; 6 &sigma; d i &prime; &Element; ( mD - 3 &sigma; , mD + 3 &sigma; ) 0 d i &prime; &le; mD - 3 &sigma; 1 d i &prime; &GreaterEqual; mD - 3 &sigma; (33)
Wherein MD = 1 n &Sigma; i = 1 n d i | n = 1,2 , . . . , N
&sigma; 2 = 1 n &Sigma; i = 1 n ( d i - mD ) 2 n = 1,2 , . . . , N
Step 5: utilize following formula that 5 characteristic distances are merged.
D Is=x 1D ' 1+ x 2D ' 2+ ... + x 5D ' 5, x wherein 1..., x 5∈ [0,1], and x 1+ ... + x K=1.(34)
Utilize particle cluster algorithm to carry out parameter optimization, obtain optimized weights and distribute Xbest.
Step 6: after obtaining optimized weights distribution Xbest, calculate the comprehensive characteristics fusion distance, retrieve according to image similarity again, calculate precision ratio and recall ratio, the result is fed back to the user.Present embodiment is chosen wherein Fig. 3, Fig. 5 and single characteristic key PVR curve of 3 sub-class libraries averagings of income and average comprehensive characteristics retrieval PVR curve shown in Figure 7, like Fig. 4, Fig. 6 and shown in Figure 8.This shows that single characteristic key has nothing in common with each other for the performance that different subclass storehouses is showed, and generally be superior to single characteristic key based on the retrieval performance of many characteristic key.
Further providing below utilizes particle cluster algorithm to carry out the step of parameter optimization:
Step1: suppose search space be 5 dimensions and establish population 30 particles arranged, i particle represented one 5 parameter vector X that ties up i=(x I1, x I2..., x I5), (i=1,2 ..., 30), promptly i particle is X in the position of the search volume of 5 dimensions iIn other words, each particle position is the feasible solution that potential weights distribute, a random initializtion in allowed limits.
Step2: with X iObjective function of substitution just can calculate its fitness, the quality of weighing according to the size of fitness.Objective function f (X i) be made as many signature searchs result's under the current weight PVR index.
Step3: i the particle speed of " circling in the air " also is the vector of one 5 dimension, is expressed as: V i=(v I1, v I2..., v I5), (i=1,2 ..., 30), random initializtion in allowed limits.
Step4: the optimal location note that i particle oneself searches is made P i=(p I1, p I2..., p I5), (i=1,2 ..., 30).The P of each particle iThe coordinate initialization is set to its current location, and calculates the fitness value (weights that are current individual representative distribute the PVR index result who retrieves) of its corresponding individual extreme point.
Step5: the optimal location note that whole population searches is up to now made P g=(p G1, p G2..., p G5).P gBe initialized as in the step best individual body position in all individual extreme values, be current best weight value distribution.
Step6: will come particle is carried out iterative operation according to following formula:
V’ ik=ω·V ik+c 1·rand 1·(P ik-X ik)+c 2·rand 2·(P gk-X ik) (35)
X’ ik=X ik+V ik
(36)
I=1 wherein, 2 ..., 30, ω is an inertia weight, is a constant between [0,1]; c 1And c 2Being learning rate, also is a non-negative constant; Rand 1And rand 2It is the random number that produces between [0,1]; V Ik∈ [V Max, V Max], and V MaxIt is the speed maximal value of an appointment.Can find out that from top two formula the moving direction of particle is by three part decisions, own original speed V Ik, with the range difference (P of the own optimum position that experiences Ik-X Ik) and with the range difference (P of the optimum position of colony experience Gk-X Ik), and respectively by weight coefficient ω, c 1And c 2Determine its relative importance.The standard that iteration stops is the optimal-adaptive degree that perhaps reaches appointment according to maximum iteration time.
Step7: the individual extreme value of each particle is upgraded with following formula:
P i &prime; = X i &prime; , if f ( X i &prime; ) &GreaterEqual; f ( P i ) P i , if f ( X i &prime; ) < f ( P i )
(37)
Estimate each particle, calculate the fitness value of particle,, then upgrade this particle position if be better than the current individual extreme value of this particle.
Step8: the global extremum to all particles is chosen as follows:
P g′=P imax
(38)
P wherein Imax' be the maximum Pi ' of adaptive value.
Step9: new particle more, whether check meets termination condition, if current iterations has reached predefined maximum times (or reach least error require), then stops iteration, the output optimum solution, otherwise continue more new particle.
The image information that the present invention can provide according to the user goes out many characteristic distances through many feature calculation of extracting image, utilizes particle cluster algorithm to optimize weighting parameter, and many characteristic distances are merged, and matees with the characteristics of image storehouse of appointment then.Thereby retrieve efficiently and the image of the image similarity that is retrieved, retrieval rate is high, has satisfied customer requirements.

Claims (2)

1. multi-feature image retrieval method based on particle cluster algorithm; It is characterized in that: the image information that this method provides according to the user; Many feature calculation through extracting image go out many characteristic distances, utilize particle cluster algorithm to optimize weighting parameter, and many characteristic distances are merged; Mate with the characteristics of image storehouse of appointment then, thereby retrieve efficiently and the image of the image similarity that is retrieved; Specifically comprise the steps:
Step 1: establish P tBe the image that to retrieve, N width of cloth image arranged, P in the image data base iBe i width of cloth image in the shape library, 1≤i≤N;
Step 2: extract a plurality of proper vectors of image that are retrieved, normalization, characteristic set is W={W 1, W 2..., W K, wherein K is the characteristic number of extracting, K>=1;
Step 3: obtain P according to following formula t, P iAbout characteristic W KCharacteristic distance D i
D ( q , t ) = ( &Sigma; m = 0 M - 1 | w q ( m ) - w t ( m ) | 2 ) 1 2
(7)
Step 4: with distance B i normalization, obtain D according to following formula i' mistake! Do not find Reference source.;
d i &prime; = d i - mD + 3 &sigma; 6 &sigma; d i &prime; &Element; ( mD - 3 &sigma; , mD + 3 &sigma; ) 0 d i &prime; &le; mD - 3 &sigma; 1 d i &prime; &GreaterEqual; mD - 3 &sigma;
(8)
Wherein MD = 1 n &Sigma; i = 1 n d i | n = 1,2 , . . . , N
&sigma; 2 = 1 n &Sigma; i = 1 n ( d i - mD ) 2 n = 1,2 , . . . , N
Step 5: K characteristic distance merged according to following formula;
D Is=x 1D ' 1+ x 2D ' 2+ ... + x KD ' K, x wherein 1..., x K∈ [0,1], and x 1+ ... + x K=1; (9)
Utilize particle cluster algorithm to carry out parameter optimization, obtain optimized weights and distribute Xbest;
Step 6: after distributing Xbest according to optimized weights, obtain the comprehensive characteristics fusion distance, and retrieve, the result is fed back to the user, retrieve and the image of the image similarity that is retrieved according to image similarity.
2. the multi-feature image retrieval method based on particle cluster algorithm according to claim 1 is characterized in that: in the step 5, it is following to utilize particle cluster algorithm to carry out the step of parameter optimization:
Step1: suppose that search space is that K ties up and population has m particle, i particle represented the parameter vector X of a K dimension i=(x I1, x I2..., x IK), (i=1,2 ..., m), promptly i particle is X in the position of the search volume of K dimension iIn other words, each particle position is the feasible solution that potential weights distribute, a random initializtion in allowed limits;
Step2: with X iObjective function of substitution calculates its fitness, weighs good and bad according to the size of fitness; Objective function f (X i) be made as many signature searchs result's under the current weight PVR index;
Step3: i the particle speed of " circling in the air " also is the vector of a K dimension, is expressed as: V i=(v I1, v I2..., v IK), (i=1,2 ..., m), random initializtion in allowed limits;
Step4: the optimal location note that i particle oneself searches is made P i=(p I1, p I2..., p IK), (i=1,2 ..., m); The P of each particle iThe coordinate initialization is set to its current location, and calculates the fitness value of its corresponding individual extreme point, and promptly the weights of current individual representative distribute the PVR index result who retrieves;
Step5: the optimal location note that whole population searches is up to now made P g=(p G1, p G2..., p GK); P gBe initialized as in the step best individual body position in all individual extreme values, be current best weight value distribution;
Step6: come particle is carried out iterative operation according to following formula:
V’ ik=ω·V ik+c 1·rand 1·(P ik-X ik)+c 2·rand 2·(P gk-X ik)
(10)
X’ ik=X ik+V ik
(11)
I=1 wherein, 2 ..., m, ω is an inertia weight, is a constant between [0,1]; c 1And c 2Being learning rate, also is a non-negative constant; Rand 1And rand 2It is the random number that produces between [0,1]; V Ik∈ [V Max, V Max], and V MaxIt is the speed maximal value of an appointment;
Step7: the individual extreme value of each particle is upgraded with following formula:
P i &prime; = X i &prime; , if f ( X i &prime; ) &GreaterEqual; f ( P i ) P i , if f ( X i &prime; ) < f ( P i )
(12)
Estimate each particle, calculate the fitness value of particle,, then upgrade this particle position if be better than the current individual extreme value of this particle;
Step8: the global extremum to all particles is chosen as follows:
P g′=P imax
(13)
P wherein Imax' be the maximum Pi ' of adaptive value;
Step9: new particle more, whether check meets termination condition, if current iterations has reached predefined maximum times or reached the least error requirement, then stops iteration, the output optimum solution, otherwise continue more new particle.
CN2011103587288A 2011-11-11 2011-11-11 Method for retrieving multi-feature image based on particle swarm algorithm Pending CN102426606A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103587288A CN102426606A (en) 2011-11-11 2011-11-11 Method for retrieving multi-feature image based on particle swarm algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103587288A CN102426606A (en) 2011-11-11 2011-11-11 Method for retrieving multi-feature image based on particle swarm algorithm

Publications (1)

Publication Number Publication Date
CN102426606A true CN102426606A (en) 2012-04-25

Family

ID=45960586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103587288A Pending CN102426606A (en) 2011-11-11 2011-11-11 Method for retrieving multi-feature image based on particle swarm algorithm

Country Status (1)

Country Link
CN (1) CN102426606A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335762A (en) * 2015-12-07 2016-02-17 南京信息工程大学 Confidentiality level identification recognizing method based on Legendre moment invariants and PSO-LSSVM classifier
CN105740895A (en) * 2016-01-28 2016-07-06 长春师范大学 Image segmentation method and system based on dynamic multi-objective optimization
CN107563308A (en) * 2017-08-11 2018-01-09 西安电子科技大学 SLAM closed loop detection methods based on particle swarm optimization algorithm
CN107958073A (en) * 2017-12-07 2018-04-24 电子科技大学 A kind of Color Image Retrieval based on particle swarm optimization algorithm optimization
CN108280209A (en) * 2018-01-31 2018-07-13 湖北工业大学 A kind of image search method and system based on fireworks algorithm
CN108593725A (en) * 2018-04-26 2018-09-28 西北师范大学 Capacitance chromatography imaging method based on Modified particle swarm optimization
CN110263207A (en) * 2019-06-20 2019-09-20 杭州时趣信息技术有限公司 Image search method, device, equipment and computer readable storage medium
CN110750689A (en) * 2019-10-30 2020-02-04 北京大学 Multi-graph fusion method
WO2020210996A1 (en) * 2019-04-17 2020-10-22 深圳大学 Image query method and system, computing device and storage medium
CN112584146A (en) * 2019-09-30 2021-03-30 复旦大学 Method and system for evaluating interframe similarity
CN112954051A (en) * 2021-02-07 2021-06-11 广州一盒科技有限公司 Remote control method and system for food material processing
CN113642623A (en) * 2021-08-05 2021-11-12 深圳大学 Complex support vector machine classification method based on unitary space multi-feature fusion

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘国安: "粒子群算法改进研究及其在图像检索中的应用", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 *
王令: "基于内容的图像检索技术分析和研究", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 *
赵子鹏: "粒子群优化算法及其在图像检索中相关反馈上的应用", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335762A (en) * 2015-12-07 2016-02-17 南京信息工程大学 Confidentiality level identification recognizing method based on Legendre moment invariants and PSO-LSSVM classifier
CN105335762B (en) * 2015-12-07 2018-11-23 南京信息工程大学 A kind of security level identification recognition methods based on Legendre moment invariants and PSO-LSSVM classifier
CN105740895A (en) * 2016-01-28 2016-07-06 长春师范大学 Image segmentation method and system based on dynamic multi-objective optimization
CN107563308B (en) * 2017-08-11 2020-01-31 西安电子科技大学 SLAM closed loop detection method based on particle swarm optimization algorithm
CN107563308A (en) * 2017-08-11 2018-01-09 西安电子科技大学 SLAM closed loop detection methods based on particle swarm optimization algorithm
CN107958073A (en) * 2017-12-07 2018-04-24 电子科技大学 A kind of Color Image Retrieval based on particle swarm optimization algorithm optimization
CN107958073B (en) * 2017-12-07 2020-07-17 电子科技大学 Particle cluster algorithm optimization-based color image retrieval method
CN108280209A (en) * 2018-01-31 2018-07-13 湖北工业大学 A kind of image search method and system based on fireworks algorithm
CN108280209B (en) * 2018-01-31 2020-07-07 湖北工业大学 Image retrieval method and system based on firework algorithm
CN108593725A (en) * 2018-04-26 2018-09-28 西北师范大学 Capacitance chromatography imaging method based on Modified particle swarm optimization
WO2020210996A1 (en) * 2019-04-17 2020-10-22 深圳大学 Image query method and system, computing device and storage medium
CN110263207A (en) * 2019-06-20 2019-09-20 杭州时趣信息技术有限公司 Image search method, device, equipment and computer readable storage medium
CN112584146A (en) * 2019-09-30 2021-03-30 复旦大学 Method and system for evaluating interframe similarity
CN112584146B (en) * 2019-09-30 2021-09-28 复旦大学 Method and system for evaluating interframe similarity
CN110750689A (en) * 2019-10-30 2020-02-04 北京大学 Multi-graph fusion method
CN112954051A (en) * 2021-02-07 2021-06-11 广州一盒科技有限公司 Remote control method and system for food material processing
CN112954051B (en) * 2021-02-07 2021-09-03 广州一盒科技有限公司 Remote control method and system for food material processing
CN113642623A (en) * 2021-08-05 2021-11-12 深圳大学 Complex support vector machine classification method based on unitary space multi-feature fusion
CN113642623B (en) * 2021-08-05 2023-08-18 深圳大学 Complex support vector machine classification method based on unitary space multi-feature fusion

Similar Documents

Publication Publication Date Title
CN102426606A (en) Method for retrieving multi-feature image based on particle swarm algorithm
Li et al. RSI-CB: A large-scale remote sensing image classification benchmark using crowdsourced data
Wang et al. WiFi indoor localization with CSI fingerprinting-based random forest
Guo et al. A comprehensive performance evaluation of 3D local feature descriptors
Pickup et al. Shape retrieval of non-rigid 3d human models
Li et al. A comparison of 3D shape retrieval methods based on a large-scale benchmark supporting multimodal queries
Gao et al. 3D model retrieval using weighted bipartite graph matching
Khrissi et al. Clustering method and sine cosine algorithm for image segmentation
Payá et al. Map building and monte carlo localization using global appearance of omnidirectional images
Payá et al. Performance of global-appearance descriptors in map building and localization using omnidirectional vision
CN106537422A (en) Systems and methods for capture of relationships within information
Zou et al. A novel 3D model retrieval approach using combined shape distribution
Song et al. Hidden naive bayes indoor fingerprinting localization based on best-discriminating ap selection
Yu et al. Latent-MVCNN: 3D shape recognition using multiple views from pre-defined or random viewpoints
Niazmardi et al. A novel multiple kernel learning framework for multiple feature classification
Pham et al. SHREC’18: Rgb-d object-to-cad retrieval
Fang et al. Synthesizing location semantics from street view images to improve urban land-use classification
Ma et al. An improved ball pivot algorithm-based ground filtering mechanism for LiDAR data
Khan et al. Gray method for multiple attribute decision making with incomplete weight information under the pythagorean fuzzy setting
Li et al. Matching algorithm for 3D point cloud recognition and registration based on multi-statistics histogram descriptors
Wang et al. Multi-view attention-convolution pooling network for 3D point cloud classification
Sun et al. Differential evolution algorithm with population knowledge fusion strategy for image registration
Gao et al. SDANet: spatial deep attention-based for point cloud classification and segmentation
CN104331711B (en) SAR image recognition methods based on multiple dimensioned fuzzy mearue and semi-supervised learning
Vilar et al. Realworld 3d object recognition using a 3d extension of the hog descriptor and a depth camera

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120425