• No results found

Dynamic partial reconfiguration of 2 D haar wavelet transform (HWT) for face recognition systems

N/A
N/A
Protected

Academic year: 2020

Share "Dynamic partial reconfiguration of 2 D haar wavelet transform (HWT) for face recognition systems"

Copied!
5
0
0

Loading.... (view fulltext now)

Full text

(1)

DYNAMIC PARTIAL RECONFIGURATION OF 2-D HAAR WAVELET

TRANSFORM (HWT) FOR FACE RECOGNITION SYSTEMS

A. Ahmad

1

, A. Amira

2

, P. Nicholl

3

, B. Krill

4

1

Department of Computer Engineering, Faculty of Electrical and Electronic Engineering

Universiti Tun Hussein Onn Malaysia, Johor, Malaysia

2,4

Nanotechnology and Integrated Bio-Engineering Centre (NIBEC)

Faculty of Computing and Engineering

University of Ulster (Jordanstown campus), Northern Ireland

3

School of Electronic, Electrical Engineering and Computer Science

The Queens University, Belfast, Northern Ireland

[email protected]; [email protected]; [email protected]; [email protected]

ABSTRACT

This paper presents two novel architectures for two-dimensional (2-D) Haar wavelet transform (HWT) of transform block in face recognition systems. The proposed architectures comprises 2-D HWT with transpose-based computation and dynamic partial reconfiguration (DPR) that have been synthesised using VHDL and implemented on Xilinx Virtex-5 FPGAs. To evaluate the proposed architecture, comparison for both configurations and a detailed performance analysis in terms of area, power consumption and maximum frequency are also addressed in this paper.

1

INTRODUCTION

In recent years, the demand for sophisticated security systems has risen significantly. Both commercial and governmental organisations require methods of protecting people and property. Varieties of biometric approaches have been investigated or adopted such as fingerprint [1], voice scans [2] and face recognition [3].

Face recognition has received a large amount of attention from researchers in recent years [3]. It has the potential to provide a robust biometric which, although unlikely to exceed the accuracy of techniques like iris or fingerprint scanning, could fulfill the needs of many scenarios.

Much of the interest in face recognition has been prompted by humans’ own remarkable ability to recognise faces [4]. This ability encompasses recognition of faces from thousands of known individuals, even in cases where there is partial occlusion of the face, poor illumination, or there has been a change in appearance.

The nature of face recognition systems applications involves performing complex task on a large set of database and often under real-time requirements [3]. Therefore, it is computationally intensive and an efficient

hardware implementation appears as viable solution to be considered.

To accelerate the systems, this study deals with the hardware implementation of transform block in the face recognition system using field programmable gate array (FPGA). Xilinx FPGA device with dynamic partial reconfiguration (DPR) [5] technique has been selected to prototype the proposed architectures. With the ultimate goal to speed up the process of transforming input images into the wavelet coefficients, FPGA with the availability of advanced embedded resources such as soft cores, dedicated logic and block multipliers [6] is well suited.

The rest of the paper is organised as follows. An overview of the algorithm and methodology are presented in Section 2. Section 3 explains the hardware implementation: proposed systems applications and architecture. FPGA implementation results and an overview of the advantages offered with DPR technique are described in Section 4. Finally, concluding remarks are given in Section 5.

2

ALGORITHM AND METHODOLOGY

An overview of the algorithm and methodology are discussed in the following subsection.

2.1 Discrete Wavelet Transform (DWT)

(2)

However, to date, no systematic examination has been performed which determines how to best employ DWT for face recognition. The effect of employing different filters and scales has not been examined. A part of this research attempts to investigate these issues and has been published in [1].

The study is then widened to examine another interesting part on the hardware implementation. Among the filters that have been evaluated in [1], this paper highlights the contributions that can be achieved using Haar wavelet transform (HWT) as well as the advantages offered by DPR [10].

2.2 Haar Wavelet Transform (HWT) using Pipelined

Direct Mapping

HWT is selected because of its simplistic nature, and mathematical features [11]. The mathematical features of the basis are as follows: the most simplistic wavelet basis, can be implemented using pairwise averaging and differencing, both unitary and orthogonal, and also it has compact support [11]. Calculation for both processes are described in Equations 1 and 2, where i=0...

(

N2 −1

)

.

2 2 1

2

i i

i

a a H =⎛ ∗ + ∗ + ⎞

⎜ ⎟

⎝ ⎠ (1)

( )N2 1 2i 2i 1

H + =a +a∗ + (2)

From implementation point of view, the one-dimensional (1-D) HWT flow diagram with N-inputs sample for pipelined direct mapping is shown in Figure 1, with ‘Avg.’ and ‘Diff.’ refer for average and differencing processes, respectively.

Figure 1. 1-D HWT flow diagram with N-inputs sample for direct

mapped architecture [10].

3

HARDWARE IMPLEMENTATION

An overview of the hardware implementations including the proposed system applications and architectures is explained in the following subsections.

3.1 Proposed System Applications

[image:2.595.360.475.229.415.2]

Figure 2 illustrates an overview of the proposed system for both the trained and after the training phase using the AT&T database. To accelerate the processes involved in face recognition system, two FPGA-based architectures of two-dimensional (2-D) HWT have been proposed to transform an image xth scale.

Figure 2. Proposed system applications

(a) Trained phase (b) After the training phase.

A high-level overview of the recognition approach adopted is given in Figure 3 (a), whilst the generic proposed 2-D HWT architecture is illustrated in Figure 3 (b). The whole chain to calculate the 2-D HWT gets an input as a 2-D image with N×N point, and outputs the coefficients of the N×N point.

To simplify the hardware design, the 2-D HWT is splitted into two 1-D HWT calculation cascaded together with transpose modules in between. This is achieved by performing the first 1-D HWT along the rows (columns) of the array followed by 1-D HWT along the columns (rows) of the transformed array. Transposition module stores the transposed coefficients into memory with a fetch unit module that reads back the coefficients for the next calculation.

3.2 Proposed Architectures

Both proposed architectures implementation on the FPGA are given in Figure 4 (a) and (b). The implementation of 2-D HWT without DPR defined the entire FPGA devices as one module. On the other hand, the implementation with DPR method and its framework consists of:

1. Two reconfigurable areas – for the 1-D HWT and transposition module; and

[image:2.595.93.252.501.734.2]
(3)

00 01 02 07

10 11 12 17

20 21 22 27

70 71 72 77

... ... ... ... ... ... ... ...

...

I I I I I I I I I I I I

I I I I

⎡ ⎤

⎢ ⎥

⎢ ⎥

⎢ ⎥

⎢ ⎥

⎢ ⎥

⎢ ⎥

⎣ ⎦

00 01 02 07

10 11 12 17

20 21 22 27

70 71 72 77

... ... ... ... ... ... ... ...

...

T T T I

T T T T

T T T T

T T T T

⎡ ⎤

⎢ ⎥

⎢ ⎥

⎢ ⎥

⎢ ⎥

⎢ ⎥

⎢ ⎥

[image:3.595.104.493.73.262.2]

⎣ ⎦

Figure 3. Proposed system architectures

[image:3.595.55.280.302.510.2]

(a) Overview of recognition approach (b) Architecture for 2-D HWT with transpose-based computation (c) Input data for images with x,y∈ [0,1...7] (d) Transpose matrix after transpose with x,y∈ [0,1...7].

Figure 4. Proposed top architecture of 2-D HWT

(a) Without DPR (b) With DPR.

In both architectures, data fetch unit and HWT module are connected with a defined data bit width bus, a request line and back signal free. The fetch unit sends data and the request to the HWT core as long the free signal is active. HWT and transposition module are connected with the defined data bit width bus and an enable signal. In each cycle and the enable is active, the data will be transposed and written into the memory.

3.3 2-D Haar Wavelet Transform (HWT) and

Transpose-based Computation

The proposed 2-D HWT implementation works as follows. The input to the first 1-D HWT is read row by row, the 1-D HWT is performed on each input vector as they are provided and the calculated values are sent to the transpose module, which calculated the memory addresses for the transposition and stores the data into memory.

The transpose acts as a memory forwarder and performs matrix transpose, since row vectors are provided by the 1-D HWT. After transposition of the resultant matrix, another 1-D HWT is performed on the coefficients which are stored in memory to yield the two-dimensional 2-D HWT coefficients. Algorithm 1 gives the description of the 2-D HWT process.

Algorithm 1 The 2-D HWT pseudo-code

1: forrow = 1 to norowsdo

2: Apply a 1-D HWT column-wise

3: end for

4: forcol = 1 to nocolsdo

5: Apply a 1-D HWT row-wise

6: end for

3.4 2-D Haar Waveley Transform (HWT) with

Dynamic Partial Reconfiguration (DPR)

In this study, the ISE Design Suite 9.2PR and PlanAhead 10.1 [12] are used. With module-based DPR [10], this method has the limitation that all design files and reconfigurable modules must be available to the build environment to build partial modules.

Reconfigurable architectures using DPR technique comprises of several reconfigurable processing modules (RPM), a reconfigurable interface, an off-chip memory and micro blaze (µblaze). The system is connected to the host personal computer (PC) via peripheral component interconnect (PCI) express [10]. µblaze is a soft processor core designed for Xilinx FPGAs [12].

The reconfigurable processing modules allow hardware acceleration and can be reconfigured based on the system demand, whilst the communication interface is used to build the interconnection between RPM and the other components.

4

RESULTS AND ANALYSIS

(4)

4.1 FPGA Implementation

In this study, Xilinx early access partial reconfiguration (EAPR) design flow [5] is used as a design flow reference, and these two architectures are implemented on the Xilinx Virtex-5 (XC5VLX110T-3FF1136).

In the face recognition system, the inputs are various size of images, hence different transform sizes (N = 8, 16, 32, 64 and 128) have been used to examine the relationship of the transform sizes on the area (slices), power consumption (mW) and maximum speed (MHz).

In Table 6, results for both architectures are listed. As an example, for N = 128, the implementation with DPR technique yields a significant achievement with better resources used for area as well as better power consumption by 46.67% and 15.96%, respectively. On top of that, DPR technique also gives 4.59% better maximum frequency than without DPR.

TABLEI

RESOURCES UTILISATION AND OVERALL PROPOSED ARCHITECTURES PERFORMANCE ON XC5VLX110T-3FF113.

Parameters

Proposed 2-D HWT

Without DPR With DPR

N = 8 N = 128 N = 8 N = 128

Area (Slices) (3.15%) 2,180 (55.35%) 38,261 (2.00%) 1,376 (29.51%) 20,403 Power consumption

(mW) 902.64 1772.83 762.55 1489.81 Maximum frequency

(MHz) 213.82 164.59 271.15 172.51

4.2 Discussions

To underline the influence of different transform size on area, power consumption and maximum frequency, Figures 5 – 7 illustrate the relationship for each performance indicator. Results obtained are clearly shown that the proposed 2-D HWT without DPR consumes more area and power. Using DPR technique, better area and power saving can be achieved between 36.68% to 46.67% and 6.78% to 15.96%, respectively. Additionally, to visualise the impact of non-partial and partial reconfiguration chip layouts for N = 16 and 64 are given in Figure 8.

DPR is a promising technique for reducing the hardware required as well as improving the performance of the system. With this technique, the design can be divided into sub-designs that fit into the available hardware resources and can be uploaded into the reconfigurable hardware when needed [10].

In SRAM-based FPGAs, full-device reconfiguration is required upon power up [13]. The process of initialisation involves the FPGAs to be programmed with a configuration bitstream file. Partial reconfiguration concept appears after intialisation and works to modify a fraction of the resources by programming the FPGA with a partial bitstream file. Obviously, a full bitstream size is very massive whereas a partial bitstream may represents only 2% of the full

bitstream [6], [13]. With smaller bitstreams, several advantages can be achieved: reduced reconfiguration time, reduced storage requirements, and dynamic allocation of functionality.

[image:4.595.319.534.232.557.2]

The application of face recognition requires several building blocks for its computationally intensive processes to perform matrix transformation operations. Moreover, complexity in addressing and accessing large data bases have resulted in vast challenges from a hardware implementation point of view. To cope with these issues, an FPGA-based architecture with efficient reconfigurability techniques is a promising solution to meet the demands of these applications in terms of speed, size (area), power consumption and throughput.

[image:4.595.322.534.594.743.2]

Figure 5. Influence of transform size on area (slices).

Figure 6. Influence of transform size on power consumption (mW).

Figure 7. Influence of transform size on maximum frequency (MHz)

(5)
[image:5.595.60.272.70.380.2]

Figure 8. Comparison of chip layout for different transform sizes on XC5VLX110T-3FF113.

5

CONCLUSIONS

This paper presents two architectures for 2-D HWT have been proposed for the transform in the proposed face recognition system based on transpose computation and partial reconfiguration.

To sum up, comparative study for both non-partial and partial reconfiguration processes has shown that DPR offers many advantages and lead to a promising solution for implementing computationally intensive applications such as face recognition systems. Using DPR, several large systems are mapped to small hardware resources and the area, power and maximum frequency are optimised and improved.

REFERENCES

[1] P. Nicholl, A. Ahmad and A. Amira, “A Novel Feature

Vectors Construction Approach for Face Recognition,”

Trans. on Comput. Sci. XI, LNCS 6480, pp. 223–248, 2010.

[2] W. Campbell, D. Sturim and D. Reynolds, “Support

Vector Machines using GMM Supervectors for Speaker

Verification,” IEEE Signal Processing Letters, vol.

13(5), pp. 308, 2006.

[3] W. Zhao, R. Chellappa, P. J. Phillips, and A. Rosenfeld,

“Face Recognition: A Literature Survey,” ACM

Comput. Surv., vol. 35(4), pp. 399–458, 2003.

[4] N. Kanwisher and M. Moscovitch, “The Cognitive

Neuroscience of Face Processing: an Introduction,”

Cognitive Neuropsychology, vol. 17(1), pp. 1–11, 2000.

[5] P. Lysaght, B. Blodget, J. Mason, J. Young, and B.

Bridgford, “Invited paper: Enhanced architectures, design methodologies and CAD tools for dynamic

reconfiguration of Xilinx FPGAs,” in Proc. FPL’06,

2006, pp. 1–6.

[6] A. Ahmad, “Efficient Reconfigurable Architecture for

3-D Medical Image Compression,” PhD Thesis, School of Engineering and Design, Brunel University, London, 2010.

[7] S. Mallat, “A Wavelet Tour of Signal Processing, Third

Edition: The Sparse Way,” Academic Press, 2008..

[8] M. T. Harandi, M. N. Ahmadabadi and B. N. Araabi,

“Face Recognition using Reinforcement Learning,” in

Proc. ICIP’04, 2004, pp. 2709-2712.

[9] H. K. Ekenel and B. Shankur, “Multiresolution face

recognition,” Image and Vision Computing, vol. 23(5),

pp. 469–477, 2005.

[10] A. Ahmad, B. Krill, A. Amira, and H. Rabah, “Efficient

architectures for 3D HWT using dynamic partial

reconfiguration,” Journal of Syst. Arch., vol. 56(8), pp.

305–316, 2010.

[11] C. Bajaj, I. Ihm, and S. Park, “3D RGB image

compression for interactive applications,” ACM Trans.

on Graphics, vol. 20(1), pp. 10–38, 2001.

[12] (2010) The Xilinx website. [Online]. Available:

http://www.xilinx.com

[13] M. G. Parris, “Optimizing dynamic location realizations

of partial reconfiguration of field programmable gate arrays,” Master Thesis, School of Electrical Engineering and Computer Science, University of Central Florida Orlando, 2009.

[14] J. Huang, M. Parris, J. Lee, and R. F. Demara, “Scalable

FPGA-based architecture for DCT computation using

dynamic partial reconfiguration,” ACM Trans. Embed.

Comput. Syst., vol. 9(1), pp. 9–18, 2009.

[15] B. Krill, A. Ahmad, A. Amira, and H. Rabah, “An

efficient FPGA-based dynamic partial reconfiguration design flow and environment for image and signal

processing IP cores,” Journal of Signal Proc.: Image

Figure

Figure 3 (b). The whole chain to calculate the 2-D HWT
Figure 4. Proposed top architecture of 2-D HWT
Figure 5. Influence of transform size on area (slices).
Figure 8. Comparison of chip layout for different transform sizes on XC5VLX110T-3FF113

References

Related documents

When leaders complete Basic Leader Training at (name of council), they are asked to fill out an evaluation on the training. The immediate feedback new leaders give is

A first general question: Have end states (mission and goals) of an allied Unified Protector crisis response operation been achieved? In this part, information about

In view of the discussion in the previous section it is reasonable to suppose that formation of the catalyst would be facilitated if the original complex

Against the shortage of ability of describing the spatial distribution characteristic of object’s edge information, this paper proposed a new image retrieval algorithm based

Methods: Fifty-two 40 – 60 y old women completed a 1-year longitudinal study that included 1) SCS assessment using resonance Raman spectroscopy (RRS) and using

Unified PQ conditioner (UPQC) is a versatile custom power device which consists of two inverters connected back-to-back and deals with both load current and supply

The present study confmns: that silica exposure may lead to nephrotoxicity; that smoking has also a nephrotoxic effect on the kidney and is synergistic to nephrotoxicity of

The computer code which uses the method of characteristics and the stream function to define high efficiency nozzle profile for isentropic, inviscid, ir-rotational