CN102609717A - Cotton foreign fiber characteristic selection method based on particle swarm optimization algorithm - Google Patents

Cotton foreign fiber characteristic selection method based on particle swarm optimization algorithm Download PDF

Info

Publication number
CN102609717A
CN102609717A CN2012100062102A CN201210006210A CN102609717A CN 102609717 A CN102609717 A CN 102609717A CN 2012100062102 A CN2012100062102 A CN 2012100062102A CN 201210006210 A CN201210006210 A CN 201210006210A CN 102609717 A CN102609717 A CN 102609717A
Authority
CN
China
Prior art keywords
particle
optimal solution
characteristic
sample set
foreign fiber
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
CN2012100062102A
Other languages
Chinese (zh)
Other versions
CN102609717B (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.)
China Agricultural University
Original Assignee
China Agricultural 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 China Agricultural University filed Critical China Agricultural University
Priority to CN 201210006210 priority Critical patent/CN102609717B/en
Publication of CN102609717A publication Critical patent/CN102609717A/en
Application granted granted Critical
Publication of CN102609717B publication Critical patent/CN102609717B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a cotton foreign fiber characteristic selection method based on a particle swarm optimization algorithm and relates to the technical field of image processing. The cotton foreign fiber characteristic selection method comprises the following steps of: S1, initializing a particle swarm according to characteristic data of a characteristic training sample set obtained by characteristic extraction; S2, designing an SVM (Support Vector Machine) classifier according to the sample set; S3, classifying the sample set and calculating a fitness value of a particle; S4, optimally solving the fitness value of the current particle and comparing a globally optimal solution of a group; and updating a locally optimal solution and the globally optimal solution; S5, calculating the movement speed and new position of the particle; and S6, if a finishing condition is met, finishing and outputting an optimal characteristic set; otherwise, adding 1 into an iteration and returning to the step S2. According to the method disclosed by the invention, the optimal selection can be carried out on a cotton foreign fiber characteristic, and to the method adapts to the requirements of the SVM classifier; and furthermore, the classifying performance is further improved.

Description

Cotton foreign fiber feature selection approach based on particle swarm optimization algorithm
Technical field
The present invention relates to technical field of image processing, relate in particular to a kind of cotton foreign fiber feature selection approach based on particle swarm optimization algorithm.
Background technology
Foreign fiber in the cotton be meant cotton picking, ted and process such as purchase in sneak into and in the cotton cotton and Products Quality thereof had non-cotton fiber and the color fibre that has a strong impact on, like man-made fiber, hair, the rope made of hemp etc.Though the content of foreign fiber in gined cotton is few, and is serious to the quality influence of wollen fabrics.The foreign fiber of sneaking into surface is the cotton yarn broken end easily, reduces production efficiency; When weaving cotton cloth, influence fabric quality; During dyeing, influence outward appearance, the quality of cotton yarn and cloth cover has been caused very big harm.In China, a lot of cotton spinning of present stage processing enterprise mainly relies on and employs a large amount of workman's manual works to pick foreign fiber, has paid very big human and material resources cost for this reason.
Extremely learning algorithm based on Statistical Learning Theory is the important means in the foreign fiber characteristic special zone in the cotton.Foreign fiber is extracted the initial characteristics set that can access the description target; Guaranteeing under the prerequisite that nicety of grading does not reduce; From the initial characteristics set, select the strongest optimal feature subset of classification capacity; Can reduce the complicacy of classifier design to greatest extent and improve classification speed, be the precondition and guarantee that realizes online real-time grading.
Although at present in the achievement that has obtained a lot of excellences aspect the research of the feature selecting of cotton foreign fiber and pattern-recognition, because conditions such as region difference, the kind of foreign fiber, CF are also inequality even widely different.(Support Vector Machines, SVM) theory is a kind of machine learning algorithm based on Statistical Learning Theory to SVMs, can solve small sample, practical problems such as non-linear preferably.But existing achievement in research shows; The svm classifier device divides the time-like performance to descend to unnecessary and incoherent data set is arranged; Therefore characteristic optimization makes its requirement that can adapt to the svm classifier device, removes the data set of redundant and uncorrelated characteristic; Thereby further improve classification performance, become a research part in the machine learning.
Summary of the invention
The technical matters that (one) will solve
The technical matters that the present invention will solve is: provide a kind of and can be optimized selection to the cotton foreign fiber characteristic, and adapt to the requirement of svm classifier device, further improve the cotton foreign fiber feature selection approach based on particle swarm optimization algorithm of classification performance.
(2) technical scheme
For addressing the above problem, the invention provides a kind of cotton foreign fiber feature selection approach based on particle swarm optimization algorithm, the method comprising the steps of:
The characteristic of the features training sample set that S1. obtains according to feature extraction, the initialization population;
S2. according to said sample set design support vector machine classifier;
S3. said sample set is classified, calculate the appropriateness value of particle;
S4. the appropriateness value of current particle and the globally optimal solution of its locally optimal solution and population are compared, and upgrade the locally optimal solution of current particle and the globally optimal solution of population according to comparative result;
S5. the locally optimal solution and the globally optimal solution that are upgraded according to step S4 calculate the translational speed of particle and new position;
S6. judge whether to meet end condition, if meet, then finish and export the optimal characteristics collection, otherwise iterations adds 1, and return step S2.
Preferably, the characteristic in the said sample set comprises: color characteristic, shape facility and textural characteristics.
Preferably, in step S1, initialization particle position and initial velocity produce one group of initial value at random.
Preferably, establish sample set X=(x at step S2 i, y i), i=1,2 ..., N, wherein, N is a training sample quantity, x iBe the characteristic of sample, y iBe the classification of sample, be for each calculating particles SVMs optimal classification function model:
f ( x ) = sign { Σ i = 1 N α i * y i ( x i · x ) + b * }
Wherein, sign is a sign function, promptly Sign ( x ) = 1 , x &GreaterEqual; 0 - 1 , x < 0 ,
Figure BDA0000129910710000033
Be the Lagrange coefficient, x is for treating classification samples.
Preferably, in step S3, the fitness function model that calculates said appropriateness value is:
fitness = [ 1 N &Sigma; k = 1 N a k 2 ] - 1 2
Wherein, particle is a=(a 1, a 2..., a k).
Preferably, step S4 further comprises step: if the appropriateness value of said particle greater than locally optimal solution, then makes the locally optimal solution of said particle equal said appropriateness value; If the appropriateness value of said particle greater than the globally optimal solution of said population, then makes the globally optimal solution of said population equal said appropriateness value.
Preferably, in step S5, the new position of said particle is:
x i + 1 = 0 , f ( x a i + 1 ) &le; 0.5 1 , f ( x a i + 1 ) > 0.5
Wherein,
Figure BDA0000129910710000036
f (x) is the Sigmond function, i.e. f (x)=1/ (1+e-x);
The translational speed of said particle is:
v i+1=v i+c 1r 1(p lB-p i)+c 2r 2(p B-p i)
Wherein, p iBe the appropriateness value of current particle, c 1, c 2Be the study factor, and, c 1=c 2=2, r 1, r 2Be the random number between [0,1].
(3) beneficial effect
Method of the present invention is to the initial characteristics set that can describe the foreign fiber target of having extracted; Guaranteeing under the prerequisite that nicety of grading does not reduce; From wherein selecting the strongest optimal feature subset of classification capacity; Can reduce the complicacy of classifier design to greatest extent, and can under the situation of not losing nicety of grading, reduce calculated amount, the raising classification speed of characteristic svm classifier.
Description of drawings
Fig. 1 is the cotton foreign fiber feature selection approach process flow diagram based on particle swarm optimization algorithm according to one embodiment of the present invention.
Embodiment
The cotton foreign fiber feature selection approach based on particle swarm optimization algorithm that the present invention proposes specifies as follows in conjunction with accompanying drawing and embodiment.
Particle group optimizing (Particle Swarm Optimization; PSO) algorithm is a kind of emerging global optimization approach; It ceaselessly moves through each individuality among the crowd and searches for optimum solution, and each particle is by current locally optimal solution and its direction of motion of globally optimal solution decision.Particle swarm optimization algorithm has that algorithm is succinct, fast convergence rate, does not have the characteristics such as adjusting of many parameters as a kind of heuristic search algorithm; Use the characteristic optimization that helps cotton foreign fiber in the present invention; Can extract the optimal characteristics collection of image; The optimal characteristics of extracting not only can shorten the time of svm classifier device classification, can also improve classification accuracy to a certain extent.Be applied to improve svm classifier device classification performance based on removing unnecessary and incoherent data set in the disaggregated model of SVM.
As shown in Figure 1, the cotton foreign fiber feature selection approach based on particle swarm optimization algorithm of accordinging to one embodiment of the present invention comprises step:
S1. extract cotton foreign fiber feature samples data, the characteristic of the features training sample set X that obtains according to feature extraction, initialization population; The position and the initial velocity that comprise population produce one group of initial value at random.
Characteristic among the sample set X mainly comprises: color characteristic, shape facility and textural characteristics.
S2. according to sample set X design SVMs svm classifier device, this svm classifier device of training on training sample set X.
S3. sample set X is classified; Calculate the appropriateness value fitness of particle; With when carrying out feature selecting, under the prerequisite of assurance even raising sorter classification performance, reduce the scale of character subset, promptly a particle can make the nicety of grading of sorter generation high more; The number of features of selecting simultaneously is few more, and its appropriateness value just should be high more.
S4. with the appropriateness value p of current particle iWith its locally optimal solution p LBAnd the globally optimal solution p of population BCompare, and upgrade the locally optimal solution p of current particle according to comparative result LBAnd the globally optimal solution p of population B
After the particle initialization, particle's velocity and position are a group RANDOM SOLUTION, find optimum solution through iteration then, and in each iteration, particle upgrades oneself through two optimum solutions: one is the optimum solution that particle itself is found, i.e. locally optimal solution p LBAnother is the optimum solution that population is found at present, is referred to as globally optimal solution p B
S5. the locally optimal solution p that is upgraded according to step S4 LBAnd globally optimal solution p B, calculate the translational speed of particle and new position.
Particle is searched for optimum solution through the motion that each individuality in the population does not stop.Each particle is determined its direction of motion by two parts of globally optimal solution of own current locally optimal solution and all particles.Each particle is represented a point in the N dimension space, and its next position is determined by oneself current location and speed.
S6. judge whether to meet end condition, if meet, then finish and export the optimal characteristics collection, otherwise iterations adds 1, and return step S2.
Establish sample set X=(x at step S2 i, y i), i=1,2 ..., N, wherein, N is a training sample quantity, x iBe the characteristic of sample, y iBe the classification of sample, be for each calculating particles SVM optimal classification function model:
f ( x ) = sign { &Sigma; i = 1 N &alpha; i * y i ( x i &CenterDot; x ) + b * }
Wherein, sign is a sign function, promptly Sign ( x ) = 1 , x &GreaterEqual; 0 - 1 , x < 0 ,
Figure BDA0000129910710000053
Be the Lagrange coefficient, x is for treating classification samples.
In step S3, the fitness function model of calculating moderate value fitness is:
fitness = [ 1 N &Sigma; k = 1 N a k 2 ] - 1 2
Wherein, particle is a=(a 1, a 2..., a k).
In the method for this embodiment, step S4 further comprises step:
If the appropriateness value p of particle iGreater than locally optimal solution p LB, then make the locally optimal solution p of particle LBEqual appropriateness value p iIf the appropriateness value p of particle iGlobally optimal solution p greater than population B, then make the globally optimal solution p of population BEqual appropriateness value p i
In addition, in step S5, the new position of particle is:
x i + 1 = 0 , f ( x a i + 1 ) &le; 0.5 1 , f ( x a i + 1 ) > 0.5
Wherein,
Figure BDA0000129910710000062
f (x) is the Sigmond function, i.e. f (x)=1/ (1+e-x);
The translational speed of particle is:
v i+1=v i+c 1r 1(p lB-p i)+c 2r 2(p B-p i)
Wherein, c 1, c 2Be the study factor, and, c 1=c 2=2, r 1, r 2Be the random number between [0,1].
Above embodiment only is used to explain the present invention; And be not limitation of the present invention; The those of ordinary skill in relevant technologies field under the situation that does not break away from the spirit and scope of the present invention, can also be made various variations and modification; Therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (7)

1. cotton foreign fiber feature selection approach based on particle swarm optimization algorithm is characterized in that the method comprising the steps of:
The characteristic of the features training sample set that S1. obtains according to feature extraction, the initialization population;
S2. according to said sample set design support vector machine classifier;
S3. said sample set is classified, calculate the appropriateness value of particle;
S4. the appropriateness value of current particle and the globally optimal solution of its locally optimal solution and population are compared, and upgrade the locally optimal solution of current particle and the globally optimal solution of population according to comparative result;
S5. the locally optimal solution and the globally optimal solution that are upgraded according to step S4 calculate the translational speed of particle and new position;
S6. judge whether to meet end condition, if meet, then finish and export the optimal characteristics collection, otherwise iterations adds 1, and return step S2.
2. the method for claim 1 is characterized in that, the characteristic in the said sample set comprises: color characteristic, shape facility and textural characteristics.
3. the method for claim 1 is characterized in that, in step S1, initialization particle position and initial velocity produce one group of initial value at random.
4. the method for claim 1 is characterized in that, establishes sample set X=(x at step S2 i, y i), i=1,2 ..., N, wherein, N is a training sample quantity, x iBe the characteristic of sample, y iBe the classification of sample, be for each calculating particles SVMs optimal classification function model:
f ( x ) = sign { &Sigma; i = 1 N &alpha; i * y i ( x i &CenterDot; x ) + b * }
Wherein, sign is a sign function, promptly Sign ( x ) = 1 , x &GreaterEqual; 0 - 1 , x < 0 ,
Figure FDA0000129910700000013
Be the Lagrange coefficient, x is for treating classification samples.
5. the method for claim 1 is characterized in that, in step S3, the fitness function model that calculates said appropriateness value is:
fitness = [ 1 N &Sigma; k = 1 N a k 2 ] - 1 2
Wherein, particle is a=(a 1, a 2..., a k).
6. the method for claim 1 is characterized in that, step S4 further comprises step:
If the appropriateness value of said particle greater than locally optimal solution, then makes the locally optimal solution of said particle equal said appropriateness value;
If the appropriateness value of said particle greater than the globally optimal solution of said population, then makes the globally optimal solution of said population equal said appropriateness value.
7. the method for claim 1 is characterized in that, in step S5, the new position of said particle is:
x i + 1 = 0 , f ( x a i + 1 ) &le; 0.5 1 , f ( x a i + 1 ) > 0.5
Wherein,
Figure FDA0000129910700000023
f (x) is the Sigmond function, i.e. f (x)=1/ (1+e-x);
The translational speed of said particle is:
v i+1=v i+c 1r 1(p lB-p i)+c 2r 2(p B-p i)
Wherein, p iBe the appropriateness value of current particle, c 1, c 2Be the study factor, and, c 1=c 2=2, r 1, r 2Be the random number between [0,1].
CN 201210006210 2012-01-10 2012-01-10 Cotton foreign fiber characteristic selection method based on particle swarm optimization algorithm Expired - Fee Related CN102609717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210006210 CN102609717B (en) 2012-01-10 2012-01-10 Cotton foreign fiber characteristic selection method based on particle swarm optimization algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210006210 CN102609717B (en) 2012-01-10 2012-01-10 Cotton foreign fiber characteristic selection method based on particle swarm optimization algorithm

Publications (2)

Publication Number Publication Date
CN102609717A true CN102609717A (en) 2012-07-25
CN102609717B CN102609717B (en) 2013-10-23

Family

ID=46527076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210006210 Expired - Fee Related CN102609717B (en) 2012-01-10 2012-01-10 Cotton foreign fiber characteristic selection method based on particle swarm optimization algorithm

Country Status (1)

Country Link
CN (1) CN102609717B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408473A (en) * 2014-12-08 2015-03-11 中华人民共和国山东出入境检验检疫局 Distance metric learning-based cotton grading method and device
CN105654095A (en) * 2015-12-22 2016-06-08 浙江宇视科技有限公司 Feature selection method and device
CN113019993A (en) * 2021-04-19 2021-06-25 济南大学 Impurity classification and identification method and system for seed cotton
CN113688950A (en) * 2021-10-25 2021-11-23 北京邮电大学 Multi-target feature selection method, device and storage medium for image classification
CN116894169A (en) * 2023-06-27 2023-10-17 中国矿业大学 Online flow characteristic selection method based on dynamic characteristic clustering and particle swarm optimization

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
HENGBIN,LI等: "Feature selection for cotton foreign fiber objects based on PSO Algorithm", 《5TH IFIP TC 5/SIG 5.1 CONFERENCE, CCTA 2011,PROCEEDINGS, PART III》 *
RONGHUA JI等: "Classification and identification of foreign fibers in cotton on the basis of a support vector machine", 《MATHEMATICAL AND COMPUTER MODELING》 *
吴永芬,杨明: "基于ACO及PSO的特征选择算法", 《江南大学学报》 *
杨文柱等: "基于改进遗传算法的棉花异性纤维目标特征选择", 《农业机械学报》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408473A (en) * 2014-12-08 2015-03-11 中华人民共和国山东出入境检验检疫局 Distance metric learning-based cotton grading method and device
CN104408473B (en) * 2014-12-08 2017-11-03 中华人民共和国山东出入境检验检疫局 Cotton grade sorting technique and device based on learning distance metric
CN105654095A (en) * 2015-12-22 2016-06-08 浙江宇视科技有限公司 Feature selection method and device
CN105654095B (en) * 2015-12-22 2019-12-13 浙江宇视科技有限公司 feature selection method and device
CN113019993A (en) * 2021-04-19 2021-06-25 济南大学 Impurity classification and identification method and system for seed cotton
CN113019993B (en) * 2021-04-19 2022-09-09 济南大学 Impurity classification and identification method and system for seed cotton
CN113688950A (en) * 2021-10-25 2021-11-23 北京邮电大学 Multi-target feature selection method, device and storage medium for image classification
CN113688950B (en) * 2021-10-25 2022-02-18 北京邮电大学 Multi-target feature selection method, device and storage medium for image classification
CN116894169A (en) * 2023-06-27 2023-10-17 中国矿业大学 Online flow characteristic selection method based on dynamic characteristic clustering and particle swarm optimization
CN116894169B (en) * 2023-06-27 2024-01-02 中国矿业大学 Online flow characteristic selection method based on dynamic characteristic clustering and particle swarm optimization

Also Published As

Publication number Publication date
CN102609717B (en) 2013-10-23

Similar Documents

Publication Publication Date Title
CN102609717B (en) Cotton foreign fiber characteristic selection method based on particle swarm optimization algorithm
CN107590506B (en) A kind of complex device method for diagnosing faults of feature based processing
CN109977028A (en) A kind of Software Defects Predict Methods based on genetic algorithm and random forest
CN101739570B (en) Cotton foreign fiber online classifying method and system
Zhang et al. Fabric defect classification using radial basis function network
Zhou et al. A clustering-Based KNN improved algorithm CLKNN for text classification
CN104766098A (en) Construction method for classifier
CN107491833A (en) A kind of method and apparatus of photovoltaic power generation power prediction
CN104009886A (en) Intrusion detection method based on SVM
CN110827260A (en) Cloth defect classification method based on LBP (local binary pattern) features and convolutional neural network
CN105046559A (en) Bayesian network and mutual information-based client credit scoring method
CN105809573A (en) Big data analysis based load nature authentication method
CN105184486A (en) Power grid business classification method based on directed acyclic graphs support vector machine
CN103902706B (en) Method for classifying and predicting big data on basis of SVM (support vector machine)
Lu et al. Application of support vector machine and genetic algorithm optimization for quality prediction within complex industrial process
CN101770645A (en) Method and system for quickly segmenting high-resolution color image of cotton foreign fibers
Saeidi et al. An efficient DEA method for ranking woven fabric defects in textile manufacturing
CN108829733B (en) Method for establishing base data database of visible sections of yarns on warp and weft surfaces of fashionable fabric
CN110399917A (en) A kind of image classification method based on hyperparameter optimization CNN
CN105868783A (en) Reduction type support vector data description method based on information entropy
Eladly et al. Enhancing circular economy via detecting and recycling 2D nested sheet waste using Bayesian optimization technique based-smart digital twin
Lu et al. Deep adversarial data augmentation for fabric defect classification with scarce defect data
Manoj Export performance of Indian textile industry in the post multi fibre agreement regime
Duan et al. A continuous robot vision approach for predicting shapes and visually perceived weights of garments
Ali et al. Big data analytics for a novel electrical load forecasting technique

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: 20131023

Termination date: 20200110

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