neural fuzzy based self-learning algorithms

Upload: vikram-adithya

Post on 06-Apr-2018

230 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 Neural Fuzzy Based Self-Learning Algorithms

    1/6

    Neural Fuzzy Based Self-Lea rning Algorithms forHand ling Flexibility of Dynam ic StructuresChi-Hsien V. Shih, Nasser Sherkat, Peter ThomasThe Nottingham Trent University, Department of Computing

    Burton Street, Nottingham NG14BU, United KingdomAbstract - This paper describes a novel approach to tackleproblems associated with handling flexibility of dynamicstructures. A number of solutions to this problem have beendeveloped by innovative combination of fuzzy logic andneural networks - Neural Fuzzy Technique. In order toemulate the deviation of an end-effe ctor caused by flexibility,a Spring Mounted Pen (SMP) is designed and used in theexperiments. The Piecewise Error Compensation Algorithm(PEC Algorithm) and the Generic Error CompensationAlgorithm (GEC Algorithm) are devised to correct thedeviations. Comparing the desired pattern and the actualoutput pattern, the vision based intelligent controller canautomatically make appropriate compensation through anon-line self-learning process. Various experimental resultsindicate that applying the algorithms developed theintelligent kernel can compensate for flexibility and producegood results.

    I. INTRODUCTIONManufacturing with high accuracy is influenced by a

    number of factors which can be classified as follows:machine tool and its controller, workpiece, fixtures f jigs,tools and environmental conditions. Vibrational errorsand control induced errors that appear in a manufacturingsystem are normally ruled by these factors. Minimisingthe effect of such errors is usually costly. It would bedesirable to rely on the intelligence of the controller tocompensate for errors due to flexibility rather thanresorting to costly processes of tightening the tolerances.

    In order to tackle the problem of mechanical flexibilityin general, a novel scheme based on fuzzy logic and neuralnetworks has been developed and described here. ASpring Mounted Pen ( S M P ) is used in the experiments to

    emulate the movement of an end-effector caused byflexible mechanical structures (Fig. 1) . Using machinevision station, it is possible to monitor a error as well asgenerating on-line information to the ArtificialIntelligence kernel. This allows overcoming the problemsof inaccuracy due to flexibility of dynamic structures. Thedeveloped algorithms are essentially trying to avoid usingvery complex sensors to monitor all the system and otherenvironmental factors, such as those mentioned previously.Through a self-learning process - the intelligent kernelcompares the difference between the desired shape and theresulting shape to make the appropriate compensation inreal time.

    For example a system which is subject to errors due toflexibility of the workpiece is a lace scalloping machine.A number of attempts have been made to automate theprocess of lace scalloping and quality inspection[1][2][3][4][5]. Work has been reported in using lasertechnology to cut deformable materials [6 ] . Althoughusing laser reduces this deformation, distortion due tomechanical feed flexibility and misalignments persists.Changes in the lace pattern are also caused by the releaseof tension in the lace structure as it is cut. By using thedeveloped algorithm, the problems in lace trimming canbe overcome.

    11. SYSTEM OVERVIEWThe host system receives an external video signal as

    well as displaying the captured image on the videomonitor. The machine movement commands aregenerated and passed to the cutting mechanism and thetransportation system (conveyor). A S M P , as depicted in

    Bra

    Felt-TipPen

    'k .wFlg. 1 Spring MountedPen ( S W ) Cpnnected with the test rig

    Spring

    'stretch"1 1 ,4

    0-7803-2775-61964.00o 996 IEEE 429

  • 8/3/2019 Neural Fuzzy Based Self-Learning Algorithms

    2/6

    end

    Fig. 2 Samples of square wave fo llowing pro cess using the S M PFig. 1, is guided by the machine to draw a path on a paperstrip to emulate the distortion of the deformable materialdue to the cutting forces caused by tactile cutting and feedmisalignment. Fig. 2represents the results of following asquare wave using the S M P . Due to the inherentcharacteristics of the spring, the path-following-errors(PFEs) appear between the desired path and the actualtarget. Additionally, each time the pen is put in contactwith paper, the axial load on the spring changes. Thisconsequently causes the pattem generated by the S M P toalter (path1 and path2 indicated in Fig. 2).

    It can bt:seen that the PFEoccurs when the direction ofthe drawing is changed - the larger the angular variationof the path following, the larger is the error. The amount(magnitude) of the P E generated depends on thecharacteristic of the spring engaged, the pressure on theS M P and the friction forc e between the tip of the pen andthe paper. As any one of the system coefficients is altered,the result of the S M P drawing will be different.

    111. INTEGRATING THE REMOTESENSING BASED CONTROL

    We have devised a vision based intelligent control

    X coordinaie (6x3.W3)

    Fig. 4 Calculating n ew correctedcoordinatessystem incorporating a neural fuzzy technique. As shownin Fig. 3, the PFE is detected and fed into A.I. Engine Onewhich analyses the difference between the paths. It alsodecides the amplitude of correction for further processing.The vision station is triggered to capture a new frame ofthe desired path on paper. At this time, before theextracted curve is sent to the path generator, the segmentsof the extracted path are passed to A.I. Engine Two whichdetermines the correcting pattem. Both the amplitude andthe pattern are utilised to generate a predicted correctingpath. Finally, the path generator uses the predicted pathand the original path to produce the machine movementdata (compensation path).

    Two innovative schemes named the Piecewise ErrorCompensation Algorithm (PEC Algorithm) and GenericError Conipensatiori Algorithm (GEC Algorithm) form thebasis of the compensation system. The detaileddescription of the PEC algorithm based on the neuralfuzzy technique can be found in [7][8]. In the followingsection, the GEC algorithm using neural networkapproach is presented.

    IV. THE GEC ALGORITHMAs depicted in Fig. 4, his approach considers a small

    portion of the desired path to predict the correction. Everytwo consecutive coordinates (a segment) are analysed overthe entire path. As a straight line is connected fromCoordinate 1 to Coordinate 2

    (refer to Fig. 4) , the angles (01and 02)between the line (y ) and

    BASEONE the X I Y coordinates are usedb% V i L I )GEiRVLE 7o compute the possibleKNOWLEDGEIRULERBW lmwe

    MECHANISM A I ENOlNETWO

    Movemm ,, DataDam ,. , P..

    VECTOOWMOVEMENTDATA DRAWING PATH_ . . . . .

    Fig 3 The ovewiew of the vision andmotion control systems430

    correcting energies (6(x) andSb)). The angles 01 and 82 arerelated to the each other - 01and 02 are complementary.These two angles are passed toan A.I. engine to determine thecorrecting energies - 6(x) andF(y). The prediction of the newestimated coordinate(ACoordinate2(6x2, 6~2)) iscalculated by (1). Equation (2)

  • 8/3/2019 Neural Fuzzy Based Self-Learning Algorithms

    3/6

    describes the procedure of computing the pattern of thepredicted path.

    "Predicted Path = Vector (1 )+ AVector (i )i- 2 (2)= { x l , y l } + C{Gx(i),Gy(i)}

    i- 2

    where i is the ifhsegment of the path and n is the numberof vectors in the path. The correcting energies, S ( X ) ~nd

    , are also separated into two functions: correctingpattern (CP ) and correcting amplitude (CA). Equation (3)presents the relationship.

    A . Detecting the Correcting PatternIn order to detect the deviation caused by the spring, the

    S M P is driven to follow a template (a square wave) onpaper. The image of this square wave is captured by thevision station. A software filter is developed to detectedthis captured image - six coordinates, such as those shownin Fig. 5(a), can be obtained. This data is then transferredto the controller.

    The S M P is driven to draw a second line on the paper.It is clear that the PFES appear. The PFEs appear whenthe direction of the drawing changes, i.e. from direction -X to -Y, -Y to -X, -X to +Y and +Y to -X (see Fig. 5(b)). There are four different types of deviation patternsthat can be detected. They are labelled as nXnY, nYnX,nXpY and pYnX where 'n' denotes negative and 'p' means

    output1 o0.80.60.40.20.0

    input to the neural engine : o .I .2 .a .4 .5 .6 .7 .a .9 1 oFig. 6: Obtaining the training data set from a d eviation pattern

    positive.The neural network approach is employed here to learn

    the correcting action from the deviation patterns (as shownin Fig. 6) for constructing the intelligent engine to producethe compensation patterns. Fig. 6 depicts the use of thenXnY deviation pattern to produce the learning data setfor training a neural engine (A" ngine). Eleven datapoints (a, b, c, .., k labelled in Fig. 6) which are takenfrom experiments are chosen in this instance. As thetraining data is fed into the neural engine, after learningand updating procedure the trained neural engine can beused to generate a correcting pattern. The neural engineconstructed in the system is a standard fully interconnectedthree layer back propagation network. Using the similarapproach stated above, the learning data sets from nYnX,nXpY and pYnX deviation patterns can all be obtainedand utilised for teaching the networks.

    As mentioned previously, four different shapes ofdeviation patterns, i.e., nXnY, nYnX, nXpY and pYnX,can be detected from the result of following the template.Once the neural engine has successfully learned from thesesamples, the GEC algorithm is, then, used to calculate thecompensated segments. Dissimilar to the PEC algorithm,instead of using only two correcting patterns [71[81, twosets of correcting patterns are used, i.e. {G(nXtiY),S(nYriX)} and { 6 ( 1 i , Y p Y ) , S (p Y n X )} . Depending on thedirection (angle) of the line between two detectedcoordinates, one of the correcting pattern pair is assignedto the correcting energies G(x), and 6(y), . For example, if

    drawing direction-the angle of the line between two coordinates is less then180 degrees (Fig. 7), then (4) is engaged by the GECalgorithm; or if the angle of the line is larger than 180degrees then (5) is used.

    (b) where G(nXnY) is the correcting pattern generated by theneural engine which uses nXtzY deviation pattern as thelearning data. Since the cutting mechanism employed inthe project is controlled to move from +X to -X direction,we only need to consider the angles of the coordinatesFig. 5 (a) Vectorising the square wave; (b) Drawing which -are larger than 90 degrees and less than 270a second path follow ed the templateusing he S M P

    431

  • 8/3/2019 Neural Fuzzy Based Self-Learning Algorithms

    4/6

    (90 egrees) -Y

    +X -X (180 degrees)

    (270degrees) +YFig. 7 Depending on the direction (angle)of the path, two sets ofcorrectingpattems canbe chosento assign for the GEC lgorithm

    degrees. As the angles 81 and 82 (labelled in Fig. 7) aredetected, this information is normalised into the range of[0, 11. Additionally, this normalised data is passed ontothe trained neural engine in order to produce thecorrecting energies 6 ( ~ ) ~nd 6(y} , which can be used tocreate the correcting pattern. Fig. 8 represents thisprocedure.B. Detection of Correcting Amplitude

    Once the correcting patterns are obtained, the next stepis to determine the amount of correcting amplituderequired. As already stated when the Z axis of the test rigis reset, three system parameters of the S M P are altered(refer to Section 11). This results in changing themagnitude of the PFEs (Fig. 9). In order to measure themaximum amount of PFEs that can be produced by theS M P , the actual length of the deviation is calculated.

    Fig. 10depicts an example of calculating two maximumdeviations caused by the S M P . The vision station is usedto detect the length of L1 (or L2). The actual length of L1is then transformed into the machine control unit which is40 steps I mm. As an illustration, if L1 is measured as 8.9mm, the maximum machine control units that can beadded in the original path in G ( f l p Y } side is 356 steps (8.9

    mm x 40 teps 1mm).C . The Correction Process

    WEIGHTS(nXnY)(nYnx) WEIGHTS

    (nxpu)@Ynx)---rWeights \ Wainhrr / CompensatedPatternP

    A PROPER

    CompensatedPatternWeightseights

    01/02

    Weights

    DataRg. 8 Us e of a neural engine to compute the compensated pattem

    432

    As the test rig is set up, the S M P is driven to draw asquare wave on paper. Four deviation patterns are takento create the learning data sets for training the neuralnetwork kemel. Besides, four different maximumdeviations (nXnY, nXpY, nYnX and p Yn X ) are detected andstored in a configuration file. A new frame of the desireddrawing path is grabbed by the CCD camera and analysed.The detected pattern (original path) is then vectorised andfed into the trained neural engine. By applying ( I ) , (2 )and (3), the correcting pattems and amplitudes as well asthe original detected path are used to create thecompensated path. This vectorised data is, finally,transferred to the controller.

    V. EXPERIMENTALRESULTSA working prototype is constructed. A number of

    experiments have been carried out to evaluate theeffectiveness of this algorithm. Fig. 11 illustrates theprocesses of correcting the deviation by applying the GECalgorithm using the neural network approach. Asdepicted, almost all the PFEs can be successfully removedafter one frame of training procedure. Two samples ofS M P following process and their compensated patterns canbe seen in Fig. 12and Fig. 13 . The test rig developed bythe authors is illustrated in Fig. 14,

    Fig. 9 Sample of template followingusing different system setting

    fig.10 Example of calculating maximum deviations

  • 8/3/2019 Neural Fuzzy Based Self-Learning Algorithms

    5/6

    (a) the intended pa th and the actua l drawing path (with no correction)

    (b) the learning process

    (c) the intended path and the compensated drawing path (with correction)

    Fig. 11 T h e processesof correctiig the PFEs using the GEC algorithmVarious experimental results indicate that by relying on

    the algorithms developed the system can deal with anyregular and irregular paths and produce excellent results,much better than a human operator.

    intelligent control system for compensating errors due toflexibility of dynamic structures. The development of thesystem is an innovative approach to flexible materialprocessing and has further applications where modelingsystem behaviour characteristics is difficult. Such systemscan range from controlling a robot moving on a slipperysurface, driving a car on snow or piloting a boat, etc.Furthermore, by relying on the intelligent software engine

    VI. CONCLUSIONWe have presented attempts to develop a vision based

    EKCWX@) : IrregularPath1500 - . . . . . . . .

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .000500 ......................

    -1500 - ............................................................................................................................................................................................................0 -2000 -4000 -6000 -6000 -10000 -12000

    Fig. 12 Two ompensated paths generated by the neural engineusing the GEC algorithm433

  • 8/3/2019 Neural Fuzzy Based Self-Learning Algorithms

    6/6

    "ERN IA ) PATTERN IB)

    Fig. 14 Prototypeof a visionbased intelligentcontrol stationREFERENCES

    Fig. 13 Samplesof S MP followingusing theGEC algorithmtogether with the vision system the controller no longerneeds to rely on accurate position fed-back from thesensors (encoders). Transmission backlash, jointflexibility, poor feedback and stick slip can potentially becompensated for by the controller. While thecharacteristics of the mechanism change over time, suchas component wear, temperature change, andlor cheapermaterials used in construction, the controller canautomatically make appropriate compensation. Anindustrially sponsored programme of work has justcommenced to develop a commercial machine controllerbased on the developed principle.

    It is sensible to anticipate that computer hardware willdecrease continuously in cost while increasing inperformance. In contrast, mechanical hardware costs aremuch likely to stay in line with inflation in the futureyears. Consequently, it is reasonable to, where possible,make a shift from mechanical hardware to computer withthe associated intelligent software kemel in automatedindustrial applications.

    VII. ACKNOWLEDGMENTSThis work has been carried out in collaboration with

    Axiomatic Technology Ltd. and Pacer Systems Ltd.

    [ l ] Sherkat, Nasser; Shih, Chi-Hsien V. and Thomas,Peter. "A fuzzy reasoning rule-based system forhandling lace pattem distortion", IS&T I SPIE'sSymposium on Electronic Imaging : Science &Technology, vol. 2423, California, USA, 1995, pp.

    121 Shih, Chi-Hsien V.; Sherkat, Nasser and Thomas,Peter. "Real-time tracking of lace stretch usingmachine vision", IEE Fifth International Conferenceon Image Processing and It s Applications, no. 410,Edinburgh, U.K., 1995, pp. 687-691.131 Shih, Chi-Hsien V.; Sherkat, Nasser and Thomas,Peter. "Automation of lace cutting using real-timevision", 8th International Congress on ConditionMonitoring and Diagnostic EngineeringManagement, Canada, 1995, pp. 245-252.[4] Shih, Chi-Hsien V.; Sherkat, Nasser and Thomas,Peter. "An automatic lace trimming process usingreal-time vision", Journal of Real-Time Imaging,April 1996.

    151 Norton-Wayne. L. "Inspection of lace using machinevision", Computer Graphics Forum, V01.10, 1991, pp.

    [6] King, T. "Real-time tracking of patterns ondeformable materials using DSP", IE E Internationalworkshop on system engineering f o r real-timeapplications, Royal Agricultural College, Cirencester,

    [7] Shih, Chi-Hsien V.; Sherkat, Nasser and Thomas,Peter. "Close coupling of pre- and post-processingvision stations using inexact algorithms", IS&T ISPIE's Symposium on Electronic Imaging: Science &Technology, California, USA, 1996.

    [SI Shih, Chi-Hsien V.; Sherkat, Nasser and Thomas,Peter. "Correction of errors due to flexibility ofdynamic systems", 1996 IEEE InternationalConference on Robotics and Automation, USA, 1996.

    323-333.

    113-119.

    U.K, 1993, pp. 178-183.

    434