
Surface abnormality detection in medical and inspection
systems using energy variations in co-occurrence matrixes
Nandara K. Krishnand1, Akshakhi Kumar Pritoonka1, Faeze Kiani2,*
1Department of textural science, Online Computer Vision Research center, India
2Department of electronic science, Online Computer Vision Research center, Iran
*ocvrgroup000@gmail.com
Abstract:
Detection of surface defects is one of the most important issues in the field of image processing and machine vision.
In this article, a method for detecting surface defects based on energy changes in co-occurrence matrices is
presented. The presented method consists of two stages of training and testing. In the training phase, the co-
occurrence matrix operator is first applied on healthy images and then the amount of output energy is calculated. In
the following, according to the changes in the amount of energy, a suitable feature vector is defined, and with the
help of it, a suitable threshold for the health of the images is obtained. Then, in the test phase, with the help of the
calculated quorum, the defective parts are distinguished from the healthy ones. In the results section, the mentioned
method has been applied on stone and ceramic images and its detection accuracy has been calculated and compared
with some previous methods. Among the advantages of the presented method, we can mention high accuracy, low
calculations and compatibility with all types of levels due to the use of the training stage. The proposed approach
can be used in medical applications to detect abnormalities such as diseases. So, the performance is evaluated on 2d-
hela dataset to classify cell phenotypes. The proposed approach provides about 89.56 percent accuracy on 2d-hela.
Key words: surface defect detection; co-occurrence matrix; energy variations; image processing; feature extraction
1. Introduction
The visible surface of any object is called its surface. Therefore, any defect that changes the appearance
of the surface (surface) and creates non-normality is called surface defects. Detection of surface defects is
very important in various fields such as factory production, quality control and medicine. Therefore,
researchers are always trying to design intelligent systems to detect surface defects that can perform this
operation in less time and with higher accuracy. The most famous intelligent defect detection systems,
sometimes called automatic inspection systems, are based on image processing and machine vision
techniques. For example, in [1], a method for detecting wood surface defects is presented. Gash and his
colleagues in [2] proposed a fully automatic method for detecting fabric defects, and similarly, algorithms
for leather [3], agricultural products [4] and metal plates [5] have been mentioned so far.
Most of the methods that have been presented so far are designed only for a specific product or
application (ceramic, paper, leather, etc.) Therefore, in this article, a method for detecting defects is
presented, which can be used for most applications without loss of accuracy by using one training step.
In most of the proposed techniques, they try to analyze the texture of the images first and define
appropriate feature vectors to introduce that texture. Finally, by extracting feature vectors from images
and using classifiers, they do the diagnosis. Therefore, as seen, the most important step in defect detection
is texture analysis and definition of a suitable feature vector that can be used to distinguish different types
of textures from each other.
Tissue analysis techniques [6] can be divided into 4 major groups. Statistical techniques [7], structural [8],
model-based [9] and text-based filter [10]. Co-occurrence matrices are one of the statistical techniques. In