Abstract
In this paper, we present the advantage of using a general type-2 fuzzy edge detector method in the preprocessing phase of a face recognition system. The Sobel and Prewitt edge detectors combined with GT2 FSs are considered in this work. In our approach, the main idea is to apply a general type-2 fuzzy edge detector on two image databases to reduce the size of the dataset to be processed in a face recognition system. The recognition rate is compared using different edge detectors including the fuzzy edge detectors (type-1 and interval type-2 FS) and the traditional Prewitt and Sobel operators.
Access provided by CONRICYT-eBooks. Download chapter PDF
Similar content being viewed by others
Keywords
- General type-2 fuzzy logic
- Alpha planes
- Fuzzy edge detection
- Pattern recognition systems
- Neural networks
1 Introduction
Edge detection is one of the most common approaches to detect discontinuities in gray-scale images. Edge detection can be considered an essential method used in the image processing area and can be applied in image segmentation, object recognition systems, feature extraction, and target tracking [2].
There are several edge detection methods, which include the traditional ones, such as Sobel [29], Prewitt [27], Canny [2], Kirsch [9], and those based in type-1 [8, 25, 30, 31], interval type-2 [1, 20, 23, 24] and general fuzzy systems [6, 14]. In Melin et al. [14] and Gonzalez et al. [6], some edge detectors based on GT2 FSs have been proposed. In these works the results achieved by the GT2 FS are compared with others based on a T1 FS and with an IT2 FS. According with the results obtained in these papers, the conclusion is that the edge detector based on GT2 FS is better than an IT2 FS and a T1 FS.
In other works, like in [21], an edge detector based on T1 FS and other IT2 FS are implemented in the preprocessing phase of a face recognition system. According to the recognition rates achieved in this paper, the authors conclude that the recognition system has better performance when the IT2 fuzzy edge detector is applied.
In this paper, we present a face recognition system, which is performed with a monolithic neural network. In the methodology, two GT2 fuzzy edge detectors are applied over two face databases. In the first edge detector, a GT2 FS is combined with the Prewitt operator and the second with the Sobel operator. The edge datasets achieved by these GT2 fuzzy edge detectors are used as the inputs of the neural network in a face recognition system.
The aim of this work is to show the advantage of using a GT2 fuzzy edge detector in pattern recognition applications. Additionally, make a comparative analysis with the recognition rates obtained by the GT2 against the results achieved in [21] by T1 and T2 fuzzy edge detectors.
The remainder of this paper is organized as follows. Section 2 gives a review of the background on GT2 FS. The basic concepts about Prewitt, Sobel operator, low-pass filter and high-pass filter are described in Sect. 3. The methodology used to develop the GT2 fuzzy edge detector is explained in Sect. 4. The design of the recognition system based on monolithic neural network is presented in Sect. 5. The recognition rates achieved by the face recognition system and the comparative results are show in Sect. 6. Finally, Sect. 7 offers some conclusions about the results.
2 Overview of General Type-2 Fuzzy Sets
The GT2 FSs have attracted attention from the research community, and have been applied in different areas, like pattern recognition, control systems, image processing, robotics, and decision-making to name a few [3, 5, 13, 16, 28, 34]. It has been demonstrated that a GT2 FS can have the ability to handle great uncertainties.
In the following, we present a brief description about GT2 FS theory, which are used in the methodology proposed in this paper.
2.1 Definition of General Type-2 Fuzzy Sets
A general type-2 fuzzy set \(\left( {\tilde{A}} \right)\) consists of the primary variable x having domain X, the secondary variable \(u\) with domain in \(J_{x}^{u}\) at each \(x \in X\). The secondary membership grade \(\mu_{{{\tilde{\text{A}}}}} (x, u)\) is a 3D membership function where \(0 \, \le \,\mu_{{\widetilde{{\widetilde{A}}}}} (x, u) \, \le \,1\) [18, 37, 38]. It can be expressed by (1)
The footprint of uncertainty (FOU) of \(\left( {\tilde{A}} \right)\) is the two-dimensional support of \(\mu_{{\tilde{A}}} \left( {x, u} \right)\) and can be expressed by (2)
2.2 General Type-2 Fuzzy Systems
The general structure of a GT2 FLS is shown in Fig. 1 and this consists of five main blocks, which are the input fuzzification, fuzzy inference engine, fuzzy rule base, type-reducer, and defuzzifier [16].
In a GT2 FLS first the fuzzifier process maps a crisp input vector into other GT2 input FSs. In the inference engine, the fuzzy rules are combined and provide a mapping from GT2 FSs input to GT2 FSs output. This GT2 FSs output is reduced to a T1 FSs by the type-reduction process [35, 36].
There are different type-reduction methods, the most commonly used are the Centroid, Height and Center-of-sets type reduction. In this paper, we applied Centroid type-reduction. The Centroid definition \(C_{{\tilde{A}}}\) of a GT2 FLS [11, 12, 17] is expressed in (3)
where \(\theta_{i}\) is a combination associated to the secondary degree \(f_{{x_{1} }} \left( {\theta_{1} } \right)\,*\, \cdots \,*\,f_{{x_{N} }} \left( {\theta_{N} } \right)\).
2.3 General Type-2 Fuzzy Systems Approximations
Due to the fact that a GT2 FSs defuzzification process is computationally more complex than T1 and IT2 FSs; several approximation techniques have been proposed, some of them are the zSlices [33, 34] and the \(\alpha \text{-} {\text{plane}}\) representation [15, 19]. In these two approaches, the 3D GT2 membership functions are decomposed using different cuts to achieve a collection of IT2 FSs.
In this paper, the defuzzifier process is performed using \(\alpha \text{-} {\text{plane}}\) approximation, which is defined as follows.
An α-plane for a GT2 FS Ã, is denoted by Ãα, and it is the union of all primary membership functions of Ã, which secondary membership degrees are higher or equal than α (0 ≤ α ≥ 1) [15, 19]. The \(\alpha \text{-} {\text{plane}}\) is expressed in (4)
3 Edge Detection and Filters
In this section, we introduce some concepts about filters and edge detectors (Prewitt and Sobel) using in image processing areas; since, these are used as a basis in our investigation.
3.1 Prewitt Operator
The Prewitt operator is used for edge detection in digital images. This consists of a pair of 3 × 3 convolution kernels which are defined in (5) and (6) [7].
The kernels in (5) and (6) can be applied separately to the input image \(\left( I \right)\), to produce separate measurements of the gradient component (7), (8) in horizontal \(\left( {gx} \right)\) and vertical orientation \(\left( {gy} \right)\), respectively [7].
The gradient components (7) and (8) can be combined together to find the magnitude of the gradient at each point and the orientation of that gradient [22, 29]. The gradient magnitude \(\left( G \right)\) is given by (9).
3.2 Sobel Operator
Sobel operator is similar to the Prewitt operator. The only difference is that the Sobel operator use the kernels expressed in (10) and (11) to detect the vertical and horizontal edges.
3.3 Low-Pass Filter
Low-pass filters are used for image smoothing and noise reduction; this allows only passing the low frequencies of the image [21]. Also is employed to remove high spatial frequency noise from a digital image. This filter can be implemented using (12) and the mask \(\left( {\text{highM}} \right)\) used to obtained the \({\text{highPF}}\) is expressed in (13).
3.4 High-Pass Filter
High-pass filter only allows the high frequency of the image to pass through the filter and that all of the other frequency are blocked. This filter will highlight regions with intensity variations, such as an edge (will allow to pass the high frequencies) [21]. The high-pass \(\left( {\text{highPF}} \right)\) filter is implemented using (14)
where \({\text{highM}}\) in (14) represents the mask used to obtained the \({\text{highPF}}\) and this is defined by (15)
4 Edge Detection Improved with a General Type-2 Fuzzy System
In our approach, two edge detectors are improved, in the first a GT2 FS is combined with Prewitt operator and the second with the Sobel operator. The general structure used to obtain the first GT2 fuzzy edge detector is shown in Fig. 2. The second fuzzy edge detector has a similar structure; we only change the kernel using the Sobel operators in (10) and (11), which are described in Sect. 3.
The GT2 fuzzy edge detector is calculated as follows. To start, we select an input image \((I)\) of the images database; after that, the horizontal \(gx\) (7) and vertical \(gy\) (8) image gradients are obtained; moreover, the low-pass (12) and high-pass (14) filters are also applied over \((I)\).
The GT2 FIS was built using four inputs and one output. The inputs are the values obtained by \(gx\) (7), \(gy\) (8), \({\text{lowPF}}\) (12) and \({\text{highPF}}\) (14); otherwise, the output inferred represents the fuzzy gradient magnitude which is labeled as Output Edge.
An example of the input and output membership functions used in the GT2 FIS is shown in Figs. 3 and 4 respectively.
In order to objectively compare the performance of the proposed edge detectors against the results achieved in Mendoza [21], we use a similar knowledge base of fuzzy rules; these rules were designed as follows:
-
1.
If (dx is LOW) and (dy is LOW) then (OutputEdge is HIGH)
-
2.
If (dx is MIDDLE) and (dy is MIDDLE) then (OutputEdge is LOW)
-
3.
If (dx is HIGH) and (dy is HIGH) then (OutputEdge is LOW)
-
4.
If (dx is MIDDLE) and (highPF is LOW) then (OutputEdge is LOW)
-
5.
If (dy is MIDDLE) and (highPF is LOW) then (OutputEdge is LOW)
-
6.
If (lowPF is LOW) and (dy is MIDDLE) then (OutputEdge is HIGH)
-
7.
If (lowPF is LOW) and (dx is MIDDLE) then (OutputEdge is HIGH).
5 Face Recognition System Using Monolithic Neural Network and a GT2 Fuzzy Edge Detector
The aim of this work is to apply a GT2 fuzzy edge detector in a preprocessing phase in a face recognition system. In our study case, the recognition system is performed using a Monolithic Neural Networks. As already mentioned in Sect. 5, the edge detectors were designed using GT2 fuzzy combined with Prewitt and Sobel operator.
In Fig. 5 as an illustration, the general structure used in the proposed face recognition system is shown. The methodology used in the process is summarized in the following steps:
-
A.
Select the input images database
In the simulation results, two benchmark face databases were selected; in which are included the ORL [32] and the Cropped Yale [4, 10, 26].
-
B.
Applied the edge detection in the input images
In this preprocessing phase, the two GT2 fuzzy edge detectors described in Sect. 5 were applied on the ORL and Cropped Yale database.
-
C.
Training the monolithic neural network
The images obtained in the edge detection phase are used as the inputs of the neural network. In order to evaluate more objectively the recognition rate, the k-fold cross validation method was used. The training process is defined as follows:
-
1.
Define the parameters for the monolithic neural network [21].
-
Layers hidden: two
-
Neuron number in each layer: 200
-
Learning algorithm: Gradient descent with momentum and adaptive learning
-
Error goal: 1e-4.
-
-
2.
The indices for training and test k-folds were calculated as follows:
-
Define the people number \((p)\).
-
Define the sample number for each person (s).
-
Define the k-folds \((k = 5).\)
-
Calculate the number of samples (m) in each fold using (16)
$$m = \left( {s/k} \right)\, \cdot \,p$$(16) -
The train data set size (i) is calculated in (17)
$$i = m\left( {k - 1} \right)$$(17) -
Finally, the test data set size (18) are the number of samples in only one fold.
$$t = m$$(18) -
The train set and test set obtained for the three face database used in this work are shown in Table 1.
-
-
3.
The neural network was training k − 1 times, one for each training fold calculated previously.
-
4.
The neural network was testing k times, one for each fold test set calculated previously.
Finally, the mean of the rates of all the k-folds are calculated to obtain the recognition rate.
6 Experimental Results
This section provides a comparison of the recognition rates achieved by the face recognition system when different fuzzy edge detectors were applied.
In the experimental results several edge detectors were analyzed in which are included the Sobel operator, Sobel combined with T1 FLS, IT2 FLS, and GT2 FLS. Besides these, the Prewitt operator, Prewitt based on T1 FLS, IT2 FLS, and GT2 FLS are also considered. Additional to this, the experiments were also validated without using any edge detector.
The tests were executed using the ORL and the Cropped Yale database; an example of these faces database is shown in Table 2. The parameters used in the monolithic neural network are described in Sect. 5. Otherwise, the training set and testing set that we considered in the tests are presented in Table 1, and these values depend on the database size used.
It is important to mention that all values presented below are the results of the average of 30 simulations achieved by the monolithic neural network. For this reason, the results presented in this section cannot be compared directly with the results achieved in [21]; because, in [21] only are presented the best solutions.
In the first test, the face recognition system was performed using the Prewitt and Sobel GT2 fuzzy edge detectors. This test was applied over the ORL data set. The mean rate, standard deviation, and max rate values achieved by the system are shown in Table 3. In this Table, we can note that better results were obtained when the Sobel GT2 fuzzy edge detector was applied; with a mean rate of 87.97, an standard deviation of 0.0519, and max rate of 96.50.
As a part of this test in Table 4, the results of 30 simulations are shown; these results were achieved by the system when the Prewitt GT2 fuzzy edge detector is applied.
In another test, the system was considered using the Cropped Yale database. The numeric results for this experiment are presented in Table 5. In this Table, we can notice that both edge detectors achieved the same max rate value; but, the mean rate was better with the Sobel + GT2 FLS.
As part of the goals of this work, the recognition rate values achieved by the system when the GT2 fuzzy edge detector is used were compared with the results obtained when the neural network is training without edge detection, the Prewitt operator, the Prewitt combined with T1 and IT2 FSs; also, the Sobel operator, the Sobel edge detector combined with T1 and IT2 FSs. The results achieved after to apply these different edge detection methods are shown in Tables 6 and 7.
The results obtained over the ORL database are presented in Table 6; so, in this Table we can notice that the mean rate value is better when the Sobel GT2 fuzzy edge detector is applied with a value of 87.97. In these results, we can also observe that the mean rate and max rate values obtained with the Prewitt + GT2 FLS were better than the Prewitt + IT2 FLS and Prewitt + T1 FLS.
Otherwise, the results achieved when the Cropped Yale database is used are shown in Table 7. In this Table, we observed that the best performance (mean rate) of the neural network is obtained when the Sobel + GT2 FLS was applied; nevertheless, we can notice than the max rate values obtained by all the fuzzy edge detectors was of 100 %.
7 Conclusions
In summary, in this paper we have presented two edge detector methods based on GT2 FS. The edge detection was applied in two image databases before the training phase of the monolithic neural network.
Based on the simulation results presented in Tables 6 and 7, we can conclude that the edge detection based on GT2 FS represent a good way to improve the performance in a face recognition system.
In general, the results achieved in the simulations were better when the fuzzy edge detection was applied; since the results were very low when the monolithic neural network was performed without edge detection; even so, when the traditional Prewitt and Sobel edge detectors were applied.
References
Biswas, R. and Sil, J., “An Improved Canny Edge Detection Algorithm Based on Type-2 Fuzzy Sets,” Procedia Technology, vol. 4, pp. 820–824, Jan. 2012.
Canny, J. “A Computational Approach to Edge Detection”, in IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. PAMI-8, no. 6, pp. 679–698, 1986.
Doostparast Torshizi, A. and Fazel Zarandi, M. H., “Alpha-plane based automatic general type-2 fuzzy clustering based on simulated annealing meta-heuristic algorithm for analyzing gene expression data.,” Comput. Biol. Med., vol. 64, pp. 347–59, Sep. 2015.
Georghiades, A. S., Belhumeur, P. N., Kriegman, D. J., “From Few to Many: Illumination Cone Models for Face Recognition under Variable Lighting and Pose,” in IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 23, no. 6, pp. 643-660, 2001.
Golsefid, S. M. M., Zarandi, F. and Turksen, I. B., “Multi-central general type-2 fuzzy clustering approach for pattern recognitions,” Inf. Sci. (Ny)., vol. 328, pp. 172–188, Jan. 2016.
Gonzalez, C. I., Melin, P., Castro, J. R., Mendoza, O. and Castillo O., “An improved sobel edge detection method based on generalized type-2 fuzzy logic”, Soft Computing, vol. 20, no. 2, pp. 773-784, 2014.
Gonzalez, R. C., Woods, R. E. and Eddins, S. L., “Digital Image Processing using Matlab,” in Prentice-Hall, 2004.
Hu, L., Cheng, H. D. and Zhang, M., “A high performance edge detector based on fuzzy inference rules,” Information Sciences, vol. 177, no. 21, pp. 4768–4784, Nov. 2007.
Kirsch, R., “Computer determination of the constituent structure of biological images,” Computers and Biomedical Research, vol. 4, pp. 315–328, 1971.
Lee, K. C., Ho, J. and Kriegman, D., “Acquiring Linear Subspaces for Face Recognition under Variable Lighting,” in IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 27, no. 5, pp. 684-698, 2005.
Liu, F., “An efficient centroid type-reduction strategy for general type-2 fuzzy logic system,” Information Sciences, vol. 178, no. 9, pp. 2224–2236, 2008.
Liu, X., Mendel, J. M. and Wu, D., “Study on enhanced Karnik–Mendel algorithms: Initialization explanations and computation improvements,” Information Sciences, vol. 184, no. 1, pp. 75–91, 2012.
Martínez, G. E., Mendoza, O., Castro, J. R., Melin, P. and Castillo, O., “Generalized type-2 fuzzy logic in response integration of modular neural networks,” IFSA World Congress and NAFIPS Annual Meeting (IFSA/NAFIPS), pp. 1331-1336, 2013.
Melin, P., Gonzalez, C. I., Castro, J. R., Mendoza, O. and Castillo O., “Edge-Detection Method for Image Processing Based on Generalized Type-2 Fuzzy Logic,” in IEEE Transactions on Fuzzy Systems, vol. 22, no. 6, pp. 1515-1525, 2014.
Mendel, J. M., “Comments on α -Plane Representation for Type-2 Fuzzy Sets: Theory and Applications,” in IEEE Transactions on Fuzzy Systems, vol.18, no.1, pp. 229-230, 2010.
Mendel, J. M., “General Type-2 Fuzzy Logic Systems Made Simple: A Tutorial,” in IEEE Transactions on Fuzzy Systems, vol. 22, no. 5, pp.1162-1182, 2014.
Mendel, J. M., “On KM Algorithms for Solving Type-2 Fuzzy Set Problems,” in IEEE Transactions on Fuzzy Systems, vol. 21, no. 3, pp. 426–446, 2013.
Mendel, J. M. and John, R. I. B., “Type-2 fuzzy sets made simple,” in IEEE Transactions on Fuzzy Systems, vol. 10, no. 2, pp. 117–127, 2002.
Mendel, J. M., Liu, F. and Zhai, D., “α-Plane Representation for Type-2 Fuzzy Sets: Theory and Applications,” in IEEE Transactions on Fuzzy Systems, vol.17, no.5, pp. 1189-1207, 2009.
Mendoza, O., Melin, P. and Castillo, O., “An improved method for edge detection based on interval type-2 fuzzy logic,” Expert Systems with Applications, vol. 37, no. 12, pp. 8527–8535, Dec. 2010.
Mendoza, O., Melin, P. and Castillo, O., “Neural networks recognition rate as index to compare the performance of fuzzy edge detectors,” in Neural Networks (IJCNN), The 2010 International Joint Conference on, pp. 1–6, 2010.
Mendoza, O., Melin, P. and Licea, G., “A hybrid approach for image recognition combining type-2 fuzzy logic, modular neural networks and the Sugeno integral,” Information Sciences, vol. 179, no. 13, pp. 2078–2101, 2009.
Mendoza, O., Melin, P. and Licea, G., “A New Method for Edge Detection in Image Processing Using Interval Type-2 Fuzzy Logic,” 2007 IEEE International Conference on Granular Computing (GRC 2007), pp. 151–151, Nov. 2007.
Mendoza, O., Melin, P. and Licea, G., “Interval type-2 fuzzy logic for edges detection in digital images,” International Journal of Intelligent Systems (IJIS), vol. 24, no. 11, pp. 1115–1133, 2009.
Perez-Ornelas, F., Mendoza, O., Melin, P., Castro, J. R., Rodriguez-Diaz, A., “Fuzzy Index to Evaluate Edge Detection in Digital Images,” PLOS ONE, vol. 10, no. 6, pp. 1-19, 2015.
Phillips, P. J., Moon, H., Rizvi, S. A. and Rauss, P. J, “The FERET Evaluation Methodology for Face-Recognition Algorithms,” in IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 22, no.10, pp. 1090–1104, 2000.
Prewitt, J. M. S., “Object enhancement and extraction”,” B.S. Lipkin, A. Rosenfeld (Eds.), Picture Analysis and Psychopictorics, Academic Press, New York, NY, pp. 75–149, 1970.
Sanchez, M. A., Castillo, O. and Castro, J. R., “Generalized Type-2 Fuzzy Systems for controlling a mobile robot and a performance comparison with Interval Type-2 and Type-1 Fuzzy Systems,” Expert Syst. Appl., vol. 42, no. 14, pp. 5904–5914, Aug. 2015.
Sobel, I., “Camera Models and Perception”, Ph.D. thesis, Stanford University, Stanford, CA, 1970.
Talai, Z. and Talai, A., “A fast edge detection using fuzzy rules,” 2011 International Conference on Communications, Computing and Control Applications (CCCA), pp. 1–5, Mar. 2011.
Tao, C., Thompson, W. and Taur, J., “A fuzzy if-then approach to edge detection,” Fuzzy Systems, pp. 1356–1360, 1993.
The USC-SIPI Image Database. Available 00 http://www.sipi.usc.edu/database/.
Wagner, C., Hagras, H., “Employing zSlices based general type-2 fuzzy sets to model multi level agreement”, 2011 IEEE Symposium on Advances in Type-2 Fuzzy Logic Systems (T2FUZZ), pp. 50–57, 2011.
Wagner, C., Hagras, H., “Toward general type-2 fuzzy logic systems based on zSlices”, in IEEE Transactions on Fuzzy Systems, vol. 18, no. 4, pp. 637–660, 2010.
Zadeh, L. A., Fuzzy Sets, vol. 8, Academic Press Inc., USA, 1965.
Zadeh, L. A., “Outline of a New Approach to the Analysis of Complex Systems and Decision Processes,” in IEEE Transactions on Systems, Man, and Cybernetics, vol. SMC-3, no. 1, pp. 28–44, 1973.
Zhai, D. and Mendel, J. M., “Centroid of a general type-2 fuzzy set computed by means of the centroid-flow algorithm,” Fuzzy Systems (FUZZ), 2010 IEEE International Conference on, pp. 1–8, 2010.
Zhai, D. and Mendel, J. M., “Uncertainty measures for general Type-2 fuzzy sets,” Information Sciences, vol. 181, no. 3, pp. 503–518, 2011.
Acknowledgment
We thank the MyDCI program of the Division of Graduate Studies and Research, UABC, and the financial support provided by our sponsor CONACYT contract grant number: 44524.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this chapter
Cite this chapter
Gonzalez, C.I., Melin, P., Castro, J.R., Mendoza, O., Castillo, O. (2017). General Type-2 Fuzzy Edge Detection in the Preprocessing of a Face Recognition System. In: Melin, P., Castillo, O., Kacprzyk, J. (eds) Nature-Inspired Design of Hybrid Intelligent Systems. Studies in Computational Intelligence, vol 667. Springer, Cham. https://doi.org/10.1007/978-3-319-47054-2_1
Download citation
DOI: https://doi.org/10.1007/978-3-319-47054-2_1
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-47053-5
Online ISBN: 978-3-319-47054-2
eBook Packages: EngineeringEngineering (R0)