Inthispaper,wepresentatiredefectdetectionalgorithmbasedonsparserepresentation.Thedictionarylearnedfromreferenceimagescanefficientlyrepresentthetestimage.Astherepresentationcoefficientsofnormalimageshaveaspecificdistribution,thelocalfeaturecanbeestimatebycomparingrepresentationcoefficientdistribution.Meanwhile,acodinglengthisusedtomeasuretheglobalfeaturesofrepresentationcoefficients.Thetiredefectislocatedbyboththeselocalandglobalfeatures.Experimentalresultsdemonstratethattheproposedmethodcanaccuratelydetectandlocatethetiredefects.