Sigmoid Function Approximation for ANN Implementation in FPGA Devices



Similar documents
Space Vector Pulse Width Modulation Based Induction Motor with V/F Control

Decision Rule Extraction from Trained Neural Networks Using Rough Sets

Virtual Machine. Part II: Program Control. Building a Modern Computer From First Principles.

Small Business Networking

Small Business Networking

Math 135 Circles and Completing the Square Examples

Binary Representation of Numbers Autar Kaw

How To Network A Smll Business

Regular Sets and Expressions

Engineer-to-Engineer Note

Small Business Networking

Graphs on Logarithmic and Semilogarithmic Paper

An Undergraduate Curriculum Evaluation with the Analytic Hierarchy Process

Small Business Networking

Integration by Substitution

CS99S Laboratory 2 Preparation Copyright W. J. Dally 2001 October 1, 2001

How To Set Up A Network For Your Business

SPECIAL PRODUCTS AND FACTORIZATION

2 DIODE CLIPPING and CLAMPING CIRCUITS

Factoring Polynomials

Engineer-to-Engineer Note

Vendor Rating for Service Desk Selection

Outline of the Lecture. Software Testing. Unit & Integration Testing. Components. Lecture Notes 3 (of 4)

Experiment 6: Friction

5.2. LINE INTEGRALS 265. Let us quickly review the kind of integrals we have studied so far before we introduce a new one.

Source Code verification Using Logiscope and CodeReducer. Christophe Peron Principal Consultant Kalimetrix

Quick Reference Guide: One-time Account Update

Start Here. IMPORTANT: To ensure that the software is installed correctly, do not connect the USB cable until step 17. Remove tape and cardboard

Rotating DC Motors Part II

1.00/1.001 Introduction to Computers and Engineering Problem Solving Fall Final Exam

Enterprise Risk Management Software Buyer s Guide

APPLICATION NOTE Revision 3.0 MTD/PS-0534 August 13, 2008 KODAK IMAGE SENDORS COLOR CORRECTION FOR IMAGE SENSORS

The Velocity Factor of an Insulated Two-Wire Transmission Line

PROGRAMOWANIE STRUKTUR CYFROWYCH

Example A rectangular box without lid is to be made from a square cardboard of sides 18 cm by cutting equal squares from each corner and then folding

Novel Methods of Generating Self-Invertible Matrix for Hill Cipher Algorithm

DlNBVRGH + Sickness Absence Monitoring Report. Executive of the Council. Purpose of report

Operations with Polynomials

ORBITAL MANEUVERS USING LOW-THRUST

Health Information Systems: evaluation and performance of a Help Desk

PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY

5 a LAN 6 a gateway 7 a modem

Economics Letters 65 (1999) macroeconomists. a b, Ruth A. Judson, Ann L. Owen. Received 11 December 1998; accepted 12 May 1999

4.11 Inner Product Spaces

All pay auctions with certain and uncertain prizes a comment

Reasoning to Solve Equations and Inequalities

Modeling POMDPs for Generating and Simulating Stock Investment Policies

One Minute To Learn Programming: Finite Automata

AN ANALYTICAL HIERARCHY PROCESS METHODOLOGY TO EVALUATE IT SOLUTIONS FOR ORGANIZATIONS

Data replication in mobile computing

Application Bundles & Data Plans

Hillsborough Township Public Schools Mathematics Department Computer Programming 1

Basic Analysis of Autarky and Free Trade Models

Welch Allyn CardioPerfect Workstation Installation Guide

Use Geometry Expressions to create a more complex locus of points. Find evidence for equivalence using Geometry Expressions.

The LENA TM Language Environment Analysis System:

Increasing Q of Waveguide Pulse-Compression Cavities

Introducing Kashef for Application Monitoring


Cost Functions for Assessment of Vehicle Dynamics

UNLOCKING TECHNOLOGY IVECO

ClearPeaks Customer Care Guide. Business as Usual (BaU) Services Peace of mind for your BI Investment

Polynomial Functions. Polynomial functions in one variable can be written in expanded form as ( )

Performance analysis model for big data applications in cloud computing

TITLE THE PRINCIPLES OF COIN-TAP METHOD OF NON-DESTRUCTIVE TESTING

Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. Date: Friday 16 th May Time: 14:00 16:00

OPTIMISATION OF GAS FLOW USING NETWORK ANALYSIS (NEWTON LOOP-NODE METHOD)


Babylonian Method of Computing the Square Root: Justifications Based on Fuzzy Techniques and on Computational Complexity

MICRO COMBICON Headers for Through Hole Reflow Applications MC(V) 0,5/ G-2,5 THT 2.5 mm Pitch

Rate and Activation Energy of the Iodination of Acetone

Lec 2: Gates and Logic

DEVELOPMENT. Introduction to Virtualization E-book. anow is the time to realize all of the benefits of virtualizing your test and development lab.

Week 11 - Inductance

Physics 43 Homework Set 9 Chapter 40 Key

4. DC MOTORS. Understand the basic principles of operation of a DC motor. Understand the operation and basic characteristics of simple DC motors.

EE247 Lecture 4. For simplicity, will start with all pole ladder type filters. Convert to integrator based form- example shown

Unleashing the Power of Cloud

Example 27.1 Draw a Venn diagram to show the relationship between counting numbers, whole numbers, integers, and rational numbers.

Analysis of Digital IIR Filter with LabVIEW

Network Configuration Independence Mechanism

Project 6 Aircraft static stability and control

OUTLINE SYSTEM-ON-CHIP DESIGN. GETTING STARTED WITH VHDL August 31, 2015 GAJSKI S Y-CHART (1983) TOP-DOWN DESIGN (1)

Second-Degree Equations as Object of Learning

INVESTIGATION OF THE EXTINGUISHING FEATURES FOR LIQUID FUELS AND ORGANIC FLAMMABLE LIQUIDS ATOMIZED BY A WATER FLOW

THERMAL EXPANSION OF TUNGSTEN

WEB DELAY ANALYSIS AND REDUCTION BY USING LOAD BALANCING OF A DNS-BASED WEB SERVER CLUSTER

File Storage Guidelines Intended Usage

Homework 3 Solutions

APPLICATION OF TAGUCHI EXPERIMENTAL DESIGN FOR PROCESS OPTIMIZATION OF TABLET COMPRESSION MACHINES AT HLL LIFECARE LIMITED, INDIA

15.6. The mean value and the root-mean-square value of a function. Introduction. Prerequisites. Learning Outcomes. Learning Style

A Network Management System for Power-Line Communications and its Verification by Simulation

Algebra Review. How well do you remember your algebra?

Transcription:

Sigmoid Function Approximtion for ANN Implementtion in FPGA Devices Djll Eddine KHODJA, Aiss KHELDOUN, nd Lrbi REFOUFI () Fculty of Engineering Sciences, University Muhmed Boudif of M sil B.P N 6 Ichebili (8), Algeri, Tel/Fx: +3 35 55 8 36, E-mil: djll_ed@yhoo.fr () Signls & Systems Lbortory Institute of Electronics nd Electricl Engineering Boumerdes University Aiss973@gmil.com Abstrct - The objective of this work is the implementtion of Artificil Neurl Network on FPGA bord. This implementtion im is to contribute in the hrdwre integrtion solutions in the res such s monitoring, dignosis, mintennce nd control of power system s well s industril processes. Since the Simulink librry provided by Xilinx, hs ll the blocks tht re necessry for the design of Artificil Neurl Networks except few functions such s sigmoid function. In this work, n pproximtion of the sigmoid function in polynomil form hs been proposed. Then, the sigmoid function pproximtion hs been implemented on FPGA using the Xilinx librry. Tests results re stisfctory. Keywords - ANN, FPGA, Xilinx, Sigmoid Function, power system.. Introduction Monitoring, control nd mintennce of ny element of wide re power system become n importnt issue for ensuring the continuity of electric supply nd voiding the blck out. It is importnt to erly detect the defects tht cn occur in these elements by monitoring their opertions nd then developing methods for pplying dptive control nd preventive mintennce [,, 3]. The fst implementtion of the developed methods is necessry needs for the industry nd the complex (smrt) power systems. These methods my be investigted using severl techniques tht hve different chrcteristics to solve the encountering problems [, 5] The most commonly used techniques re the rtificil intelligence-bsed techniques such s Artificil Neurl Networks (ANN) [5, 6, 7] tht they re esier to implement on electronic circuit bord such s: Digitl Signl Processing (DSP) chips, Appliction Specific Integrted Circuits (ASICs) or Field progrmmble gte rry (FPGAs) [8, 9, ]. The objective of this work is the implementtion of rtificil neurl network on FPGA. This implementtion im to contribute in hrdwre integrtion solutions using FPGA pplied to different res such s monitoring, dignosis, mintennce nd control of power systems. In this study, we begin by dpting ANN to llow optiml implementtion. This implementtion must ensure efficiency, timeless nd minimum possible spce on the FPGA. Then, we schedule the ANN on the System Genertor. The System Genertor to generte VHDL code. This code is verified nd implemented on FPGA Sprtn-like by the ISE softwre from Xilinx Fondtion. ANN nd simultion To ensure efficiency, timeless nd minimum possible spce on the FPGA, we propose network tht contins two hidden lyers the first lyer hs three neurons nd the second hs two neurons, nd output lyer hs two neurons. We conducted mchine lerning using the MATLAB softwre to where we obtin smllest squred error (.7 e -5 ) for inputs, (see Fig.). The design of ANN through the use Simulink is shown in the figure. ISBN: 978-96-7-6-

From the obtined results in the testing phse, it cn be found tht lmost ANN in ccordnce (with error E -8 ) with the desired predetermined outputs. 3 ANN Review nd Simultion of the System Genertor. Design of ANN in Simulink Figure Evolution of verge qudrtic error of ANN InOut Input neuron E Input InOut neuron E Input Neuron E3 InOut Out In neuron InOut Out In InOut neuron neurone y{} neuron3 Inputs Lyer Lyer Outputs lyer outputs The Simulink librry provided by Xilinx, works in the sme principle s the other elements of Simulink. It contins blocks representing different functions tht re subjected nd interconnected to form lgorithms [8]. These blocks do not only serve to simultion, but cn lso generte VHDL or Verilog code. In ddition, the librry provided by Xilinx to Simulink, hs ll blocks tht re necessry for the design of ANN except few functions such s sigmoid function.. For this reson, we suggested n implementtion of the sigmoid function through the use of Tylor series [9], the resulting function (of order 5) cuses n error of.5% with respect to the continuous model. In our work, the sigmoid function hs been pproximted in polynomil form s given in the following :function, f ( x) cx e () Eqution () cn be rewritten s follows : In 3 Input B w -Kw w3 w. Test of ANN Once the ANN tht is implemented nd lerning performnce hs reched. Stisfctory tests re investigted, their results re presented in tble. Tble.: Simultion (test) Results of ANN for different cses. Output of ANN MATLAB Function logsig logsig Sfety cse Fult Fult S. e -8. e + 6.836 e -6 S. e +.666 e -7. e + In Input Figure ANN using Simulink librry Out B w MATLAB Function Out f ( x) c bx x Where the coefficients c, b, re given by: first: with: c e b e e 3 where V/ F 3 () ISBN: 978-96-7-6- 3

.9.8.7.6.5..3.. nd : F In Gtewy In - Constnt Constnt. x.59 CMult Constnt b z - (b) Mult.5 [:b] Slice b - b AddSub b - b AddSub3 b + b AddSub x.33 CMult not Inverter [:b] Slice [:b] Slice b b sub not AddSub Inverter Modeling the resulting function is given by Xilinx s shown in Fig.3:, hi lo Conct Constnt3 Constnt sel d d d Mux Sy stem Genertor Figure 3 modelling of sigmoid function. Out Gtewy Out simulink xilinx 6 8 Figure Comprison of Sigmoid functions of Simulink nd Xilinx Out Figure. shows tht the sigmoid function curve obtined by Simulink is in ccordnce with the curve of sigmoid function obtined by Xilinx. The design of ANN using Simulink is shown in Figure.5 According to the construction of ANN in the Simulink/Xilinx the system genertor cn lso generte the VHDL code. Implementtion of ANN in FPGA We plce the entire contents of the block of ANN in the sme subsystem, with single genertor system, then, it genertes the VHDL code (see figure.6). This prt is devoted to description of the implementtion of ANN on FPGA. In order, to do this, we use the Xilinx System Genrtor. Synthesizer: you click on Synthesizer to find spce resources occupied by the VHDL (see figure.7) The result is displyed in the Synthesizer s given in tble.. From the obtined results shown in the tble, we notice tht the VHDL code occupies n re of 8% on FPGA, mens tht the FPGA type Sprtn xcse-6tq does not support this VHDL code. However, the implementtion of the code obtined in system Sprtn3 gives the results shown in tble 3. From this tble, we found tht the code implemented in Sprtn3 tkes only 63% of storge spce of FPGA. 5 Conclusion In this work, we proposed simple lgorithm for the implementtion of the ANN. The proposed hrdwre synthesis lgorithm is performed by the System Genertor. Routing nd implementtion in FPGA type SprtnE ws mde by ISE Foundtion. The use of high-level design tool, System Genertor is very beneficil for the verifiction of the behviour of the lgorithm in Simulink. The simultions for the sigmoid function show tht the obtined results using Xilinx give the sme performnce s the sigmoid function obtined by Simulink. Furthermore, the implementtion of the obtined code using two different systems Sprtn nd Sprtn3 leds to the conclusion tht the FPGA type Sprtn3 supported the generted VHDL code gives dequte results. Finlly, one cn conclude tht the implementtion of functions in FPGAs is esier becuse now VHDL code of ny circuit cn be generted not only by n dvnced lnguge but lso by the softwre MATLAB. This gives us the bility to simulte ny function in simulink, using the librry of Xilinx fter tht the ltter is directly converted into VHDL by System Genertor. ISBN: 978-96-7-6-

InOut InOut Input E Input neuron InOut neuron Out In neuron E Input E3 neuron InOut Out In InOut neuron neuron y{} Inputs Tble. : Spce used on FPGA neuron3 Lyer Lyer Lyer of outputs Output Fig.5 progrmming ANN using SIMULINK Tble.3: Summry of used spce on the FPGA. Fig.7 Spce occupied by the implementtion. References [] G.Zwinngelsten, «Dignostic des défillnces: théorie et prtique pour les systèmes industriels», Ed. Hermès Pris. 995. Figure 6 System Genertor interfce. [] B.Dubuisson ; «Détection et dignostic des pnnes sur processus», Technique de l ingénieur. R7597,99. [3] B.Chette, DJ.Khodj, «Dignostic en temps réel des défillnces d un ensemble Moteur synchrone-convertisseur électronique en utilisnt les réseux de neurones rtificiels», Journl Electrotekhnik, Moscou /3, pp:6- ISBN: 978-96-7-6- 5

Tble 3 Summry of used spce on the FPGA [] DJ.Khodj, B.Chette, «ANN system for identifiction nd loclistion of fillures of ntomwed electric synchronous drive», nd Interntionl Symposium on Electricl, Electronic nd Computer engineering en Exhibition, Mrch, -3, NEU-CEE, NICOSIA, TRNC pp : 56-6. [5] DJ.Khodj, B.Chette, «Development of Neurl Network module for fult identifiction in Asynchronous mchine using vrious types of reference signls», nd Interntionl Conference PHYSICS nd CONTROL, August,-6, Physcon 5, S t Ptersburg, Russi, 5,. pp : 537-5. [6] V.A.Tolovk. «Réseux de neurones : Apprentissge, Orgnistion et Utilistion», Ed, Entreprise de rédction de journl Rdiotekhnik Moscou,. [7] N. Moubyed, "Detection et Loclistion Des Défuts Dns Les Convertisseurs Sttiques", 6TH Interntionl Conference on Electromechnicl nd Power Systems, Chişinău, Rep. Moldov, October, 7. [8] K. Roy-Neogi nd C. Sechen, "Multiple FPGA Prtitioning with Performnce Optimiztion", IEEE Computer Society, Proceedings of the Third Interntionl ACM Symposium on Field- Progrmmble Gte Arrys (FPGA 95), 995. [9] K. Renovell, P. Fure, J.M. Portl, J. Figuers nd Y. Zorin, "IS-FPGA: A New Symmetric FPGA Architecture With Implicit SCAN", IEEE ITC Interntionl Test Conference, Pper 33., -783-769-/. [] Areibi, G. Grewl, D. Bnerji nd P. Du "Hierrchicl FPGA Plcement", CAN. J. ELECT. COMPUT. ENG., VOL. 3, NO., Winter 7. ISBN: 978-96-7-6- 6