CN106204543A - Fabric defect detection method based on single category support vector machines - Google Patents

Fabric defect detection method based on single category support vector machines Download PDF

Info

Publication number
CN106204543A
CN106204543A CN201610498200.3A CN201610498200A CN106204543A CN 106204543 A CN106204543 A CN 106204543A CN 201610498200 A CN201610498200 A CN 201610498200A CN 106204543 A CN106204543 A CN 106204543A
Authority
CN
China
Prior art keywords
image
fault
gabor
parameter
rdpso
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
CN201610498200.3A
Other languages
Chinese (zh)
Other versions
CN106204543B (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.)
Jiangnan University
Original Assignee
Jiangnan 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 Jiangnan University filed Critical Jiangnan University
Priority to CN201610498200.3A priority Critical patent/CN106204543B/en
Publication of CN106204543A publication Critical patent/CN106204543A/en
Application granted granted Critical
Publication of CN106204543B publication Critical patent/CN106204543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2411Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on the proximity to a decision surface, e.g. support vector machines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0008Industrial image inspection checking presence/absence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30124Fabrics; Textile; Paper

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Quality & Reliability (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Analysis (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

The invention discloses a kind of fabric defect detection method based on single category support vector machines.Obtain fault-free fabric image, use the parameter of RDPSO algorithm optimization Gabor filter, the single Optimal Gabor Filters of structure adaptation fault-free fabric image texture characteristic;Use the parameter of RDPSO algorithm optimization list classification SVM;Textile image to be detected is carried out Gabor convolutional filtering;Based on extracting one group of textural characteristics on GLCM after the filtering image;Single classification SVM is used to carry out fault differentiation.The present invention uses single Optimal Gabor Filters, can be effectively improved detection speed, it is ensured that system real time requirement;Use single classification SVM as fault method of discrimination, be avoided that traditional statistical pattern recognition method local extremum, cross the problems such as study and deficient study, can effectively promote the generalization ability of system, it is ensured that the Detection accuracy requirement of system.

Description

Fabric defect detection method based on single category support vector machines
Technical field:
The invention belongs to mode identification technology, particularly to a kind of fabric defects based on single category support vector machines Detection method.
Background technology:
Textile industry is faced with acid test at present, improves product quality and reduces production cost, becoming enterprise The key factor of existence.Fabric defects drastically influence product quality, thus causes fabric price reduction, reduces enterprise's income. The method relying on machine vision automatically to detect fault, can become raising product quality and reduce the effective of production cost Approach.Compared to artificial range estimation, automatic testing method based on machine vision has the advantage that stability is high, the most examined personnel The impact of the factor such as emotion, health and environmental disturbances.It addition, after using the system of automatic defect inspection, work as system identification To there being fault to occur, machine down can be controlled, it is to avoid the expansion of fault with output signal, thus improves product quality, and one The number of machines that individual workman is responsible for can also increase, it is possible to saves employment cost, reduces production cost, and then makes the product of enterprise more There is competitiveness.
Owing to carrying out the advantage of fabric defects detection based on machine vision, many scholars have been attracted to be engaged in grinding of this respect Study carefully, and have been proposed for certain methods.But at present, major part textile enterprise still uses artificial method to carry out fault inspection Survey, one of them reason be exactly propose at present to go out its defect detection capabilities of system the most preferable, also need the most perfect.
The information being disclosed in this background section is merely intended to increase the understanding of the general background to the present invention, and should not When being considered to recognize or imply in any form this information structure prior art well known to persons skilled in the art.
Summary of the invention:
It is an object of the invention to provide a kind of fabric defect detection method based on single category support vector machines, thus gram Take above-mentioned defect of the prior art.
For achieving the above object, the invention provides a kind of fabric defects detection side based on single category support vector machines Method, the steps include:
(1) obtain fault-free fabric image, use random drift particle group optimizing (RDPSO) algorithm optimization Gabor filtering The parameter of device, the single Optimal Gabor Filters of structure adaptation fault-free fabric image texture characteristic;
(2) parameter of RDPSO algorithm optimization list category support vector machines (SVM) is used;
(3) textile image to be detected is carried out Gabor convolutional filtering;
(4) based on extracting one group of textural characteristics on gray level co-occurrence matrixes (GLCM) image after the filtering;
(5) single classification SVM is used to carry out fault differentiation.
Preferably, in technique scheme, step (1) comprises the following steps:
(1.1) structure two-dimensional space territory Gabor filter function, obtains the filtering of frequency domain Gabor through two-dimensional Fourier transform Function, the parameter needing the Gabor filter optimized is (σx, σy, λ, θ);
(1.2) fault-free fabric image is carried out Gabor convolution transform, constructs fitness function based on Fisher criterion, RDPSO algorithm optimization is used to obtain the parameter (σ of Optimal Gabor Filtersx, σy, λ, θ), structure adaptation fault-free fabric image The single Optimal Gabor Filters of textural characteristics.
Preferably, in technique scheme, step (2) comprises the following steps:
(2.1) textile image without fault is carried out convolution with optimum Gabor filter, obtain filtered image;
(2.2) based on texture feature extraction on GLCM after the filtering image, constitutive characteristic vector, as single classification SVM's Training sample;
(2.3) use Support Vector data description based on suprasphere thought (SVDD) as single classification SVM method, pass through RDPSO algorithm optimization determines two parameters C and the σ of SVDD.
Compared with prior art, there is advantages that
Use single Optimal Gabor Filters, detection speed can be effectively improved, it is ensured that system real time requirement;Use single Classification SVM, as fault method of discrimination, is avoided that traditional statistical pattern recognition method local extremum, excessively study and deficient study etc. Problem, can effectively promote the generalization ability of system, it is ensured that the Detection accuracy requirement of system.
Accompanying drawing illustrates:
Fig. 1 is the schematic flow sheet of present invention fabric defect detection method based on single category support vector machines;
Fig. 2 is four range direction figures that the present invention seeks gray level co-occurrence matrixes.
Detailed description of the invention:
Below the detailed description of the invention of the present invention is described in detail, it is to be understood that protection scope of the present invention is not Limited by detailed description of the invention.
Explicitly indicating that unless otherwise other, otherwise in entire disclosure and claims, term " includes " or it becomes Change and such as " comprising " or " including " etc. will be understood to comprise stated element or ingredient, and do not get rid of other yuan Part or other ingredient.
As it is shown in figure 1, fabric defect detection method based on single category support vector machines, the steps include:
(1.1) structure two-dimensional space territory Gabor filter function, obtains the filtering of frequency domain Gabor through two-dimensional Fourier transform Function, the parameter needing the Gabor filter optimized is (σx, σy, λ, θ).
Two-dimensional space territory Gabor filter function is represented by:
G ( x , y ) = exp ( - 1 2 ( x ′ 2 σ x 2 + y ′ 2 σ y 2 ) ) exp ( 2 π j x ′ λ ) - - - ( 1 )
Wherein
X '=x cos θ-y sin θ (2)
Y '=x sin θ+y cos θ (3)
σxAnd σyIt is respectively Gauss window standard deviation in time domain x-axis with y-axis.λ is wavelength, and θ is the anglec of rotation.Therefore, The parameter needing the Gabor filter optimized is s=(σx, σy, λ, θ).
When territory, application space Gabor filter function, amount of calculation is relatively big, and for ensureing requirement of real-time, spatial domain Gabor is filtered (x, y), through two-dimensional Fourier transform, frequency domain Gabor filter function to be converted into for wave function G
G ^ ( u , v ) = D F T ( G ( x , y ) ) = A exp ( - 1 2 ( ( u ′ - f ) 2 σ u 2 + v ′ 2 σ v 2 ) ) - - - ( 4 )
Wherein,
U '=u cos θ-υ sin θ (5)
υ '=u sin θ+υ cos θ (6)
A=2 π σxσy (7)
DFT represents two-dimensional Fourier transform.WithIt is respectively Fourier transformation to exist Frequency domain u axle and the standard deviation on v axle.Mid frequency for two-dimensional Gabor function.
(1.2) fault-free fabric image is carried out Gabor convolution transform, constructs fitness function based on Fisher criterion, RDPSO algorithm optimization is used to obtain the parameter (σ of Optimal Gabor Filtersx, σy, λ, θ), thus structure most adapts to fault-free fabric The single Optimal Gabor Filters of image texture characteristic;
Assume there are two sample t1(x, y) and t2(x, y), can construct fitness function based on Fisher criterion is:
F ( s ) = ( μ 1 - μ 2 ) 2 σ 1 2 + σ 2 2 - - - ( 8 )
Wherein (μ1, σ1) and (μ2, σ2) it is respectively two sample t1(x, y) and t2(x, y) energy value of filtered image Average and standard deviation.
Assume the fault-free fabric image of a width N × N size be f (x, y), through the filtered image of Gabor be r (x, y). The product representation in the convolution usable frequency territory of spatial domain, then r (x, y) can be obtained by following formula:
r ( x , y ) = f ( x , y ) * G ( x , y ) = I D F T ( f ^ ( u , v ) · G ^ ( u , v ) ) - - - ( 9 )
Wherein " * " represents convolution, and IDFT represents Fourier inversion,It is image f (x, Fourier transformation y). Generally, filtered image r (x, y) is complex image, and its energy diagram picture can be obtained by following formula:
E r ( x , y ) = [ r Re 2 ( x , y ) + r Im 2 ( x , y ) ] 1 2 - - - ( 10 )
Wherein rRe(x, y) and rIm(x y) is respectively image r (x, real part y) and imaginary part.The mean μ of energy diagram picture1And side DifferenceMay be defined as:
μ 1 = 1 N × N Σ x = 1 N Σ y = 1 N E r ( x , y ) , - - - ( 11 )
σ 1 2 = 1 N × N - 1 Σ x = 1 N Σ y = 1 N [ E r ( x , y ) - μ 1 ] 2 - - - ( 12 )
Using similar method, (x, y) with filtered image r (x, error image f y) for fault-free fabric image fc (x, y)=((x, y)-r (x, y)) can be used to calculate mean μ f2And varianceImage fc(x, y) through same Gabor filter G (x, y) filtered image is rc(x, y), at frequency domain, rc(x, y) can be obtained by following formula:
r c ( x , y ) = f c ( c , y ) * G ( x , y ) = I D F T ( f ^ ( u , v ) · G ^ c ( u , v ) · G ^ ( u , v ) ) - - - ( 13 )
WhereinMay be defined asWith calculating mean μ1And varianceSimilar, mean μ2With VarianceCan be obtained by formula (11) and formula (12), simply energy diagram is as Er(x, y) by filtered image rc(x, y) according to formula (10) It is calculated.
For obtaining the Gabor filter of optimum so that it is adaptation fault-free fabric image texture characteristic, Gabor need to be optimized Filter parameter s=(σx, σy, λ, θ), make fitness function F (s) of formula (8) maximize.
After having constructed fitness function, so that it may use RDPSO algorithm optimization to obtain the parameter (σ of Optimal Gabor Filtersx, σy, λ, θ).RDPSO algorithm is on the basis of particle group optimizing (PSO) algorithm, according to external electrical at a temperature of random standard finite Metallic conductor free-electron model and the optimization method that proposes.During optimizing, particle can be as one outside conductor The electronics of movement in portion's electric field, its motion can be collectively constituted by random warm-up movement and the drift motion affected by electric field.RDPSO Algorithm has been demonstrated to ensure global convergence, can find globally optimal solution.
Using RDPSO algorithm optimization Gabor filter parameter, its detailed process can be described as follows:
If iterations n=1.Initialize population, including determining maximum iteration time, the search volume (dimension of particle D), number M of particle, the position of random initializtion particle(position of particle is Gabor filtering One class value of device parameter s), i=1,2 ..., M.
It is calculated the fitness function value that each particle is corresponding by formula (8)
If current iteration frequency n=1, it is iteration, the individual desired positions of each particle for the first timeIt is this grain The initial position of sonThe individual desired positions of each particle is otherwise updated by formula (14)The overall desired positions of whole populationIts value isWherein g by Formula (15) determines.
P i n = x i n , i f F ( x i n ) > F ( P i n - 1 ) P i n - 1 , i f F ( x i n ) ≤ F ( P i n - 1 ) - - - ( 14 )
g = arg max 1 ≤ i ≤ M F ( P i n ) - - - ( 15 )
If end condition meets (reaching maximum iteration time), training terminates, the overall desired positions of whole population GnIt is one group of Gabor filter parameter s of optimum;Otherwise, formula (16) and (17) speed and the position of each particle are entered Row updates, and forwards formula (8) to and is calculated the fitness function value that each particle is corresponding
v i , j n + 1 = α | C j n - x i , j n | φ i , j n + 1 + β ( p i , j n - x i , j n ) , - - - ( 16 )
x i , j t + 1 = x i , j t + v i , j t + 1 - - - ( 17 )
Wherein α and β is respectively hot coefficient and coefficient of deviation.It is the random of normal distribution on (0, a 1) interval Number.CnFor average desired positions, can be calculated as follows:
C n = ( C 1 n , ... , C D n ) = 1 M Σ i = 1 M P i n - - - ( 18 )
For the attractor in particle convergence process, when n iteration, its coordinate is:
p i , j n = r i , j n P i , j n + ( 1 - r i , j n ) G j n - - - ( 19 )
WhereinIt it is equally distributed random number on (0, a 1) interval.
After being obtained Optimal Gabor Filters parameter by RDPSO algorithm optimization, so that it may structure Optimal Gabor Filters G*(x, y)。
(2.1) textile image without fault is carried out convolution with optimum Gabor filter, obtain filtered image;
Without the textile image f of fault, (x, y) with optimum Gabor filter G*(x, y) carries out convolution, after can being filtered Image r (x, y):
WhereinWithIt is that (x, y) with Optimal Gabor Filters G for image f respectively*(x, Fourier y) becomes Change.
(2.2) based on texture feature extraction on GLCM after the filtering image, constitutive characteristic vector, as single classification SVM's Training sample;
The gray level co-occurrence matrixes (GLCM) of piece image can reflect the texture information of diagram picture.Assume that a width size is (x, y), its tonal gradation is G (tonal gradation of general gray level image is 256) to the image I of M × N, then the GLCM of diagram picture Matrix for G × G size.For same width gray level image, in different distances and direction, different GLCM can be produced, instead Answer different textural characteristics.At range direction vectorOn, (i, j) element of position, its value of this matrixCan be calculated by following formula:
P d → ( i , j ) = Σ x = 1 M Σ y = 1 N δ { I ( x , y ) = i a n d I ( x + d x , y + d y ) = j } - - - ( 21 )
Wherein δ True}=1, δ False}=0, i.e.Represent that the pixel that gray level is i is positioned at another gray scale Level is the pixel of jThe number of times occurred on direction.
When calculating the GLCM of piece image, range direction vectorIt it is an important parameter.For same piece image, because of ForDifference, can produce multiple GLCM.The general method used is first by differentObtain multiple GLCM, then to these GLCM is averaged and obtains a GLCM unrelated with direction.
Shown in Fig. 2 four range direction figure, vectorIt is respectively (-1 ,-1), (-1,0), (-1,1) and (0,1).In reality During border uses, 8 vectors can be usedIt is respectively (-1 ,-1), (-1,0), (-1,1), (0,1), (1,1), (1,0), (1 ,-1) (0 ,-1), obtains 8 GLCM, is finally averaged these 8 GLCM and obtains a GLCM.
After obtaining a GLCM unrelated with direction of piece image, based on this GLCM, so that it may obtain 5 Haralick Textural characteristics, respectively energy (Energy), entropy (Entropy), contrast (Contrast), homogeneity degree (Homogeneity) With dependency (Correlation), can be calculated as follows:
E n e r g y = Σ i = 1 G Σ j = 1 G P i , j 2 - - - ( 22 )
E n t r o p y = Σ i = 1 G Σ j = 1 G P i , j ( - ln P i , j ) - - - ( 23 )
C o n t r a s t = Σ i = 1 G Σ j = 1 G P i , j ( i - j ) 2 - - - ( 24 )
H o m o g e n e i t y = Σ i = 1 G Σ j = 1 G P i , j 1 + | i - j | - - - ( 25 )
C o r r e l a t i o n = Σ i = 1 G Σ j = 1 G ( i - μ i ) ( j - μ j ) P i , j σ i σ j - - - ( 26 )
Wherein PI, jFor (i, j) element value of position on the GLCM of the independent of direction finally given.Average in formula (26) μiAnd μj, standard deviation sigmaiAnd σjCan be defined respectively as:
μ i = Σ i = 1 G Σ j = 1 G iP i , j - - - ( 27 )
μ j = Σ i = 1 G Σ j = 1 G jP i , j - - - ( 28 )
σ i = Σ i = 1 G Σ j = 1 G ( i - μ i ) 2 P i , j - - - ( 29 )
σ j = Σ i = 1 G Σ j = 1 G ( j - μ j ) 2 P i , j - - - ( 30 )
(2.3) use Support Vector data description based on suprasphere thought (SVDD) as single classification SVM method, pass through RDPSO algorithm optimization determines two parameters C and the σ of SVDD.
Support vector machine (SVM) is the machine learning method on the basis of a kind of Statistical Learning Theory, with Structural risk minization Turn to purpose.SVM it can be avoided that traditional statistical pattern recognition method such as neutral net, decision tree etc., local extremum, crosses study With problems such as deficient study, can effectively promote the generalization ability of system, it is ensured that the Detection accuracy requirement of system.Generally, SVM, for solving two classification problems, i.e. finds an optimal hyperlane in two class samples, can not only be by accurate for two class samples Distinguish, and this hyperplane those sample points distances nearest in two class samples are farthest.And for fabric defects detection, May be considered " abnormality detection " or " single classification problem ".In the fabric course of processing, it is normal (nothing in most cases Fault) sample, the number of fault sample is little.Further, the type of fault has a lot, such as broken yarn, broken hole, greasy dirt etc., its table Differ in shape on fabric, size, direction now, and the textural characteristics of the most dissimilar fault also can be different.Therefore, single classification side Method should be more suitable for solving fabric defects detection problem.
Support Vector data description (SVDD) is a kind of single classification SVM method proposed based on suprasphere thought.SVDD's Ultimate principle is to find a suprasphere, while minimizing its radius, allows training sample be enclosed in hypersphere as much as possible In body, i.e. minimize following object function:
F ( R , a ) = R 2 + C Σ i ξ i - - - ( 31 )
Constraints is:
||fi-a||2≤R2i, ξi≥0 (32)
Wherein fiFor i-th training sample, the one group of textural characteristics i.e. tried to achieve by (2.2), suprasphere radius is R, the centre of sphere For a, ξiFor slack variable, C is punishment parameter.Slack variable ξiIntroducing assume that in training sample, there may be abnormal sample This appearance, these samples can be located at outside optimum suprasphere, but introduce punishment parameter C on target function value, for all simultaneously Weighing apparatus hypersphere size and the ratio of the exceptional sample outside spheroid.
Foregoing content assumes that training sample is linear separability, when training sample Nonlinear separability, permissible Training data is projected to high-dimensional feature space by a nonlinear mapping so that these data can be linear in higher dimensional space Can divide, the method thus needing to introduce kernel function φ.Therefore, formula (32) is rewritable is:
||φ(fi)-a||2≤R2i, ξi≥0 (33)
The Lagrangian formulation that be can be defined as follows by formula (31) and (33):
L ( R , a , α i , γ i , ξ i ) = R 2 + C Σ i ξ i - Σ i α i ( R 2 + ξ i - | | φ ( f i ) - a | | 2 ) - Σ i γ i ξ i - - - ( 34 )
Wherein αi>=0 and γi>=0 is respectively Lagrange multiplier.It is R that formula (34) requires at variable, α, ξiIn the case of minimum Change, and be α at variableiAnd γiIn the case of maximize.Such problem can be converted into a convex double optimization problem, can pass through Fast algorithm based on Sequential minimal optimization algorithm solves and obtains optimum Lagrange multiplier αiAnd meet following three condition:
||φ(fi)-a||2< R2→αi=0, γi=0 (35)
||φ(fi)-a||2=R2→ 0 < αi< C, γi=0 (36)
||φ(fi)-a||2> R2→αi=C, γi> 0 (37)
It practice, most αiBe all 0, those minorities corresponding to αiThe training sample f of > 0iIt is referred to as supporting vector. Suprasphere centre of sphere a after training can be obtained by following formula:
a = Σ i α i f i - - - ( 38 )
The radius R of suprasphere can be supported vector (i.e. 0 < α by arbitrary on sphereiThe training sample that < C is corresponding) to the centre of sphere The distance of a obtains.
After determining the centre of sphere a and radius R of suprasphere, to a sample z to be tested, if normal sample, then under needing to meet Formula:
||φ(z)-a||2≤R2 (39)
Before solving convex double optimization problem, need the value of given parameters C and the concrete type function of kernel function φ and Parameter value.When selecting kernel function, gaussian kernel function is because of its highly versatile, and pertains only to a scale parameter σ, applies in reality In be widely used.
The SVDD that design performance is superior, selects suitably punishment parameter C and Gauss scale parameter σ most important.Punishment ginseng Number C controls to support in training result the ratio of vector.Bigger C and less σ can cause bigger suprasphere, is enclosed in super Training sample in spheroid is more, and during actual test, loss can height;Along with reducing and the increase of σ of C, suprasphere radius becomes Little, appear in outside suprasphere from cluster centre sample point farther out, during actual test, false drop rate can height.
The parameter of SVDD can use RDPSO algorithm to be optimized to obtain.When constructing object function, classification accuracy is with super The radius of ball is two factors needing to consider.It is to say, for certain particle, if being obtained classification accuracy by this particle Height, the radius of hypersphere is little, then the value of corresponding object function is the biggest.Therefore, when training, available following formula is as object function F:
f = w A × a c c + w R R - - - ( 40 )
Wherein wAAnd wRIt is respectively corresponding classification accuracy acc and the weights of radius of hypersphere R, in use can be according to reality Situation sets.Classification accuracy acc is classify sample and the ratio of total sample accurately.
When the process of optimization, cross validation method can be used, N number of subset will be divided at random by training sample, select every time Selecting a subset as test set, remaining subset is incorporated as training set, carries out n times cross validation, finally according to stayed son The meansigma methods of collection test result carrys out the quality of evaluating value.Specifically, it is simply that according to the value (parameter C and σ) of a particle, In each cross-validation experiments, solve formula (34) and obtain optimum Lagrange multiplier αi, then solve hypersphere centre of sphere a and radius R, tests the sample in training set further according to formula (39), available classification accuracy, is the most this time intersected The target function value of confirmatory experiment.Carrying out n times cross validation, the meansigma methods of target function value n times obtained is as this grain The target function value that son is corresponding.
The detailed process using the parameter of RDPSO algorithm optimization SVDD can be described as follows:
If iterations n=1.Initialize population, including determining maximum iteration time, the search volume (dimension of particle D), number M of particle, the position of random initializtion particle(position of particle is the parameter of SVDD C and σ), i=1,2 ..., M.
The fitness function value that each particle is corresponding is tried to achieve according to cross-validation method
If current iteration frequency n=1, it is iteration, the individual desired positions of each particle for the first timeIt is this particle Initial positionThe individual desired positions of each particle is otherwise updated by formula (14) The overall desired positions of whole populationIts value isWherein g is determined by formula (15).
If end condition meets (reaching maximum iteration time), training terminates, the overall desired positions of whole population GnIt is parameter C and the σ of one group of SVDD of optimum;Otherwise, formula (16) and (17) speed and the position of each particle are carried out Update, forward to try to achieve, according to cross-validation method, the fitness function value that each particle is corresponding
(3) textile image to be detected is carried out Gabor convolutional filtering, according to formula (20), by textile image to be detected With Optimal Gabor Filters G trained*(x y) carries out convolution transform, obtains filtered image.
(4) based on extracting one group of textural characteristics on gray level co-occurrence matrixes (GLCM) image after the filtering;
Similar with (2.2), based on extracting 5 textural characteristics on GLCM after the filtering image, constitutive characteristic vector, as list The input sample of classification SVM.
(5) single classification SVM method is used to carry out fault differentiation.
For input sample, if formula (39) is set up, in the range of i.e. this sample packages is contained in SVDD suprasphere, then it is flawless point sample This (normal sample);If the formula of being unsatisfactory for (39), then this sample is outside SVDD suprasphere scope, then be fault sample.
The aforementioned description to the specific illustrative embodiment of the present invention illustrates that and the purpose of illustration.These describe It is not wishing to limit the invention to disclosed precise forms, and it will be apparent that according to above-mentioned teaching, can much change And change.The purpose selected exemplary embodiment and describe is to explain that the certain principles of the present invention and reality thereof should With so that those skilled in the art be capable of and utilize the present invention various different exemplary and Various different selections and change.The scope of the present invention is intended to be limited by claims and equivalents thereof.

Claims (3)

1. fabric defect detection method based on single category support vector machines, it is characterised in that: the steps include:
(1) obtain fault-free fabric image, use random drift particle group optimizing (RDPSO) algorithm optimization Gabor filter Parameter, the single Optimal Gabor Filters of structure adaptation fault-free fabric image texture characteristic;
(2) parameter of RDPSO algorithm optimization list category support vector machines (SVM) is used;
(3) textile image to be detected is carried out Gabor convolutional filtering;
(4) based on extracting one group of textural characteristics on gray level co-occurrence matrixes (GLCM) image after the filtering;
(5) single classification SVM is used to carry out fault differentiation.
Method the most according to claim 1, it is characterised in that: step (1) comprises the following steps:
(1.1) structure two-dimensional space territory Gabor filter function, obtains frequency domain Gabor filter function through two-dimensional Fourier transform, The parameter needing the Gabor filter optimized is (σx, σy, λ, θ);
(1.2) fault-free fabric image is carried out Gabor convolution transform, construct fitness function based on Fisher criterion, use RDPSO algorithm optimization obtains the parameter (σ of Optimal Gabor Filtersx, σy, λ, θ), structure adaptation fault-free fabric image texture The single Optimal Gabor Filters of feature.
Method the most according to claim 1, it is characterised in that: step (2) comprises the following steps:
(2.1) textile image without fault is carried out convolution with optimum Gabor filter, obtain filtered image;
(2.2) based on texture feature extraction on GLCM after the filtering image, constitutive characteristic vector, as the training of single SVM that classifies Sample;
(2.3) use Support Vector data description based on suprasphere thought (SVDD) as single classification SVM method, pass through RDPSO algorithm optimization determines two parameters C and the σ of SVDD.
CN201610498200.3A 2016-06-29 2016-06-29 Fabric defect detection method based on single category support vector machines Active CN106204543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610498200.3A CN106204543B (en) 2016-06-29 2016-06-29 Fabric defect detection method based on single category support vector machines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610498200.3A CN106204543B (en) 2016-06-29 2016-06-29 Fabric defect detection method based on single category support vector machines

Publications (2)

Publication Number Publication Date
CN106204543A true CN106204543A (en) 2016-12-07
CN106204543B CN106204543B (en) 2019-08-06

Family

ID=57463539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610498200.3A Active CN106204543B (en) 2016-06-29 2016-06-29 Fabric defect detection method based on single category support vector machines

Country Status (1)

Country Link
CN (1) CN106204543B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106651864A (en) * 2016-12-21 2017-05-10 郑州航空工业管理学院 High-resolution remote sensing image-oriented segmentation method
CN107256551A (en) * 2017-06-13 2017-10-17 广州启煌科技有限公司 A kind of method, storage medium and the device of filter cloth defect damage testing
CN108010029A (en) * 2017-12-27 2018-05-08 江南大学 Fabric defect detection method based on deep learning and support vector data description
CN108764298A (en) * 2018-04-29 2018-11-06 天津大学 Electric power image-context based on single classifier influences recognition methods
CN109591846A (en) * 2018-12-20 2019-04-09 成都唐源电气股份有限公司 A kind of wheel tread online test method
CN110659719A (en) * 2019-09-19 2020-01-07 江南大学 Aluminum profile flaw detection method
CN111612788A (en) * 2020-06-22 2020-09-01 创新奇智(上海)科技有限公司 Defect identification method and device and electronic equipment
CN111709907A (en) * 2020-04-26 2020-09-25 江南大学 Cloth defect detection method based on One-Class deep support vector description
US11205262B2 (en) 2020-07-28 2021-12-21 Jiangnan University Online detection method of circular weft knitting stripe defects based on gray gradient method
WO2022021774A1 (en) * 2020-07-28 2022-02-03 江南大学 Online detection method for circular weft knitting horizontal stripe defects based on grayscale gradient method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122352A (en) * 2011-03-01 2011-07-13 西安电子科技大学 Characteristic value distribution statistical property-based polarized SAR image classification method
CN103198322A (en) * 2013-01-18 2013-07-10 江南大学 Magnetic tile surface defect feature extraction and defect classification method based on machine vision
CN103955922A (en) * 2014-04-17 2014-07-30 西安工程大学 Method for detecting flaws of printed fabric based on Gabor filter
CN104008399A (en) * 2014-06-12 2014-08-27 哈尔滨工业大学 Instrument pointer jittering recognition method based on support vector machine during instrument detection
CN104392242A (en) * 2014-11-13 2015-03-04 东北林业大学 Method for cooperatively classifying perceived solid wood panel surface textures and defects by feature extraction and compressive sensing based on dual-tree complex wavlet
CN104732244A (en) * 2015-04-15 2015-06-24 大连交通大学 Wavelet transform, multi-strategy PSO (particle swarm optimization) and SVM (support vector machine) integrated based remote sensing image classification method
CN104794368A (en) * 2015-05-15 2015-07-22 哈尔滨理工大学 Rolling bearing fault classifying method based on FOA-MKSVM (fruit fly optimization algorithm-multiple kernel support vector machine)
CN105205828A (en) * 2015-10-20 2015-12-30 江南大学 Warp knitted fabric flaw detection method based on optimal Gabor filter

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122352A (en) * 2011-03-01 2011-07-13 西安电子科技大学 Characteristic value distribution statistical property-based polarized SAR image classification method
CN103198322A (en) * 2013-01-18 2013-07-10 江南大学 Magnetic tile surface defect feature extraction and defect classification method based on machine vision
CN103955922A (en) * 2014-04-17 2014-07-30 西安工程大学 Method for detecting flaws of printed fabric based on Gabor filter
CN104008399A (en) * 2014-06-12 2014-08-27 哈尔滨工业大学 Instrument pointer jittering recognition method based on support vector machine during instrument detection
CN104392242A (en) * 2014-11-13 2015-03-04 东北林业大学 Method for cooperatively classifying perceived solid wood panel surface textures and defects by feature extraction and compressive sensing based on dual-tree complex wavlet
CN104732244A (en) * 2015-04-15 2015-06-24 大连交通大学 Wavelet transform, multi-strategy PSO (particle swarm optimization) and SVM (support vector machine) integrated based remote sensing image classification method
CN104794368A (en) * 2015-05-15 2015-07-22 哈尔滨理工大学 Rolling bearing fault classifying method based on FOA-MKSVM (fruit fly optimization algorithm-multiple kernel support vector machine)
CN105205828A (en) * 2015-10-20 2015-12-30 江南大学 Warp knitted fabric flaw detection method based on optimal Gabor filter

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
兰瑜洁等: "基于单类支持向量机的织物瑕疵检测研究", 《机电工程》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106651864B (en) * 2016-12-21 2019-07-26 郑州航空工业管理学院 A kind of dividing method towards high-resolution remote sensing image
CN106651864A (en) * 2016-12-21 2017-05-10 郑州航空工业管理学院 High-resolution remote sensing image-oriented segmentation method
CN107256551A (en) * 2017-06-13 2017-10-17 广州启煌科技有限公司 A kind of method, storage medium and the device of filter cloth defect damage testing
CN108010029A (en) * 2017-12-27 2018-05-08 江南大学 Fabric defect detection method based on deep learning and support vector data description
CN108764298B (en) * 2018-04-29 2022-03-08 天津大学 Electric power image environment influence identification method based on single classifier
CN108764298A (en) * 2018-04-29 2018-11-06 天津大学 Electric power image-context based on single classifier influences recognition methods
CN109591846A (en) * 2018-12-20 2019-04-09 成都唐源电气股份有限公司 A kind of wheel tread online test method
CN110659719A (en) * 2019-09-19 2020-01-07 江南大学 Aluminum profile flaw detection method
CN110659719B (en) * 2019-09-19 2022-02-08 江南大学 Aluminum profile flaw detection method
CN111709907A (en) * 2020-04-26 2020-09-25 江南大学 Cloth defect detection method based on One-Class deep support vector description
CN111612788A (en) * 2020-06-22 2020-09-01 创新奇智(上海)科技有限公司 Defect identification method and device and electronic equipment
CN111612788B (en) * 2020-06-22 2023-07-04 创新奇智(上海)科技有限公司 Defect identification method and device and electronic equipment
US11205262B2 (en) 2020-07-28 2021-12-21 Jiangnan University Online detection method of circular weft knitting stripe defects based on gray gradient method
WO2022021774A1 (en) * 2020-07-28 2022-02-03 江南大学 Online detection method for circular weft knitting horizontal stripe defects based on grayscale gradient method

Also Published As

Publication number Publication date
CN106204543B (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN106204543A (en) Fabric defect detection method based on single category support vector machines
Mei et al. An unsupervised-learning-based approach for automated defect inspection on textured surfaces
Zhao et al. A visual long-short-term memory based integrated CNN model for fabric defect image classification
US20210020360A1 (en) Internal thermal fault diagnosis method of oil-immersed transformer based on deep convolutional neural network and image segmentation
CN109612999B (en) System and method for wafer map analysis
Kłosowski et al. Using neural networks and deep learning algorithms in electrical impedance tomography
CN108010029A (en) Fabric defect detection method based on deep learning and support vector data description
CN107230203B (en) Casting defect identification method based on human eye visual attention mechanism
CN103810704B (en) Based on support vector machine and the SAR image change detection of discriminative random fields
CN111507976B (en) Defect detection method and system based on multi-angle imaging
CN104657717B (en) A kind of pedestrian detection method based on layering nuclear sparse expression
CN107064170A (en) One kind detection phone housing profile tolerance defect method
CN102651132B (en) Medical image registration method based on intersecting cortical model
Cao et al. Collaborative discrepancy optimization for reliable image anomaly localization
CN109949287A (en) A kind of fabric defects detection method based on adaptivenon-uniform sampling and template correction
CN113793318B (en) Multi-region complex damage defect characteristic comprehensive analysis method
CN106296689B (en) Flaw detection method, system and device
CN107491734A (en) Semi-supervised Classification of Polarimetric SAR Image method based on multi-core integration Yu space W ishart LapSVM
CN104700368B (en) The displacement field adaptive smooth method of Digital Image Correlation Method based on kernel function
CN112017204A (en) Tool state image classification method based on edge marker graph neural network
US20220076404A1 (en) Defect management apparatus, method and non-transitory computer readable medium
CN107133626A (en) Medical image classification method based on partial average stochastic optimization model
Peng et al. Automated product boundary defect detection based on image moment feature anomaly
Wu et al. An end-to-end learning method for industrial defect detection
CN109636790A (en) A kind of recognition methods of pipeline structure and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant