3.2.1 Acquisition
This process undertakes the detection of the ends and
acquisition of images of them. It is divided into the
subprocess: end detection before the ERCIS, and end
acquisition.
3.2.2 Evaluation
If the decision queue is not empty then an image has
already been acquired and can be processed. This
process has the following steps:
• End center location and end orientation.
• ROI rectification. The ROI is converted into a
straight line strip to ease its analysis. This strip is
a Look-up-Table (LUT) whose size is n × e pixels.
The length n, in which is divided the ROI perime-
ter, depends on the selected resolution. The recti-
fication method employed selects for each one of
n × e pixels the nearest 4-neighbour (Gonz
´
alez and
Woods, 2002).
• Repair coating quality: The RCQ is assessed ana-
lyzing one-by-one all the n positions of the LUT
by means of the model obtained in Section 4.
• End A/R decision: The average repair coating qual-
ity (ARCQ) is computed from the RCQ values at
the n positions in which have been divided the ROI.
Then, an end have to be rejected when the condi-
tion ARCQ<MARCQ is given (see the meaning of
MARCQ in Subsection 3.1.3).
• Update the decision queue: The decision queue
must be updated after making the A/R decision of
each end.
3.2.3 Expulsion
This process is subdivided in: end detection after the
ERCIS, and end expulsion.
3.2.4 Stop
If stop signal is activated then the process goes to the
flowchart end with independence of the current state
of the process.
4 MODELING
In order to evaluate the RCQ on each one of n posi-
tions of the LUT, a set of a few attributes that contain
most of the relevant information on each one of the n
positions is studied. The 9 attributes computed from
each e-pixel group of n
th
LUT position are: Maxi-
mum pixel intensity (Max), Minimum pixel intensity,
Mean pixel intensity is a measure of central tendency
(location), Median pixel intensity is a measure of cen-
tral tendency (location), Pixel intensity standard devi-
ation ( Std) is a measure of dispersion, Pixel intensity
skewness is a measure of the asymmetry, Pixel inten-
sity center of mass (CoM), Pixel intensity moment of
inertia about an axis passing through the CoM, and
Pixel intensity bisector.
A fuzzy inference system (FIS) (Kosko, 1992;
Yager and Zadeh, 1994; Klir and Yuan, 1995), whose
inputs are the selected attributes, will be used to eval-
uate the RCQ on each of the n positions. As an exces-
sive number of inputs prevents the interpretability of
the underlying model and increases the computational
burden, we look for a model with a trade off between
high accuracy and reduced number of inputs. We got
a modeling problem with 9 candidate inputs and we
want to find the 3 most influential inputs as the in-
puts of the model. We so can build 84 fuzzy mod-
els, each one with a different combination of 3 inputs.
The proposed FIS model is a Takagi-Sugeno-Kang
(TSK) inference system (Takagi and Sugeno, 1985;
Sugeno and Kang, 1988). These models are suited for
modeling non-linear systems by interpolating multi-
ple linear models. The TSK model is designed with
zero order (singleton values for each consequent), 3
of 9 attributes as inputs and RCQ as output. The TSK
model is developed using the adaptive neuro-fuzzy in-
ference system (ANFIS) algorithm (Jang, 1993; Jang
and Sun, 1995).
We use a quick and straightforward way of neuro-
fuzzy modeling input selection using ANFIS to im-
prove the interpretability (Jang, 1996). This input
selection method is based on the hypothesis that
the ANFIS model with smallest RMSE (root mean
squared error) after one epoch of training has a greater
potential of achieving a lower RMSE when given
more epochs of training.
Representative input-output data set of the system
should be selected to tune a model. We have only
worked with a specific end format named 1/4 Club,
with an easy-open tab in one of its corners. We have
selected a collection of 11 ends that agglutinate all
possible end repair coating defects. The obtained
LUT for each end has a length n of 702 positions, with
a width e of 19 pixels. After removing instances with
outlier values, the data set was reduced to 6669 en-
tries. This data set is divided into training and testing
sets of size 3335× 19 and 3334× 19 respectively. The
testing set is used to determine when training should
be terminated to prevent overfitting.
It has been selected grid partitioning as the AN-
FIS partition method. The best model after one epoch
of training selects as input attributes the maximum
(Max), the standard deviation (Std), and the center
of mass (CoM). The problem is that this partitioning
leads to a high number of rules, 2
3
= 8 rules for each
model.