원시데이터 수집 시스템
선정목록으로

Dimensional synthesis of mechanical linkages using artificial neural networks and Fourier descriptors

관련 모빌리티 소재 · (3) 자동차 인테리어 소재

기본 정보

저자
  1. Noman Khan — University of Engg. & Technology, Peshawar, Pakistan
  2. İrfan Ullah — College of Engineering, Taibah University, Yanbu, Saudi Arabia
  3. M. Al-Grafi — College of Engineering, Taibah University, Yanbu, Saudi Arabia
DOI
10.5194/ms-6-29-2015
저널
Mechanical sciences
발행년도
2015
발행기관
Copernicus Publications
피인용수
29
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.5194/ms-6-29-2015
토픽
Gear and Bearing Dynamics Analysis
OpenAlex ID
W2019813067

평가 내용

관련도
관련
사업분야
모빌리티 소재 · (3) 자동차 인테리어 소재
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
LLM(gemma-4-26b-a4b-it) 평가로 '모빌리티 소재 > 자동차 인테리어 소재' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Abstract. Dimensional synthesis of mechanisms to trace given paths is an important problem with no exact solution. In this paper, the problem is divided into representation of curve shape and learning the relation between curve shape and mechanism dimensions. Curve shape is represented by Fourier descriptors of cumulative angular deviation of the curve, which do not depend on the position or scale of the curve. An artificial neural network (ANN) is trained to learn the (unknown) relation between the Fourier descriptors of a planar curve and the dimensions of the mechanism tracing that curve. Presented with any simple, closed, planar curve, the ANN suggests the dimensions of a four-bar whose coupler curve is similar in shape. A local optimization procedure further refines the results. Examples presented indicate the method is successful as long as the curve shape is such that the mechanism is able to trace it.

본문 22,496자

본문 펼치기
Mech. Sci., 6, 29–34, 2015 www.mech-sci.net/6/29/2015/ doi:10.5194/ms-6-29-2015 © Author(s) 2015. CC Attribution 3.0 License. # Dimensional synthesis of mechanical linkages using artificial neural networks and Fourier descriptors N. Khan <sup>1</sup> , I. Ullah <sup>2</sup> , and M. Al-Grafi <sup>2</sup> 1University of Engineering and Technology Peshawar, Pakistan 2College of Engineering, Taibah University, Yanbu, Saudi Arabia _Correspondence to:_ I. Ullah (drirfanullah61@hotmail.com) Received: 13 November 2014 – Revised: 12 March 2015 – Accepted: 18 March 2015 – Published: 1 April 2015 Abstract. Dimensional synthesis of mechanisms to trace given paths is an important problem with no exact solution. In this paper, the problem is divided into representation of curve shape and learning the relation between curve shape and mechanism dimensions. Curve shape is represented by Fourier descriptors of cumulative angular deviation of the curve, which do not depend on the position or scale of the curve. An artificial neural network (ANN) is trained to learn the (unknown) relation between the Fourier descriptors of a planar curve and the dimensions of the mechanism tracing that curve. Presented with any simple, closed, planar curve, the ANN suggests the dimensions of a four-bar whose coupler curve is similar in shape. A local optimization procedure further refines the results. Examples presented indicate the method is successful as long as the curve shape is such that the mechanism is able to trace it. 1 Introduction Mechanical linkages are used extensively for transforming motion and transmitting power in industrial machinery, agriculture, construction, automobiles and household gadgets. The design of linkages involves determining dimensions of constituting links so that the linkage moves in a manner necessary to carry out the required task (Sandor and Erdman, 1988). Figure 1 shows a common four-bar linkage whose tracer point P generates a path known as the coupler curve when the input link rotates. The problem of dimensional synthesis for path generation requires calculation of suitable dimensions for the linkage so that point P traces a desired continuous path. An exact solution for this problem is not possible because of the limited number of dimensions available, but various techniques have been used for approximate solutions. The most common techniques used include conventional optimization methods (Tomas, 1968; Sancibrian et al., 2004; Diab and Smaili, 2008), using atlases of mechanisms (Zhang et al., 1984), simulated annealing (Ullah and Kota, 1996), and genetic algorithms or evolutionary algorithms (Cabrera et al., 2002; Laribi et al., 2004; Starosta, 2008; Lin, 2010). Published by Copernicus Publications In this research, normalized Fourier descriptors are used to represent the shape of coupler curves and artificial neural networks (ANNs) are used for approximating the inverse relationship between curve shape and linkage dimensions. A brief introduction to Fourier descriptors is presented below, followed by review of the relevant research. Fourier descriptors are functions used for description of shapes of object boundaries (or of any two-dimensional, simple closed curve). The boundary of a shape is represented by a periodic function that, when expanded in a Fourier series, yields a set of coefficients containing the shape information. Different types of Fourier descriptors have been proposed in the literature, including Fourier descriptors of the boundary (McGarva and Mullineux, 1993; Persoon and Fu, 1986) and Fourier descriptors of the angular orientation of the curve (Zahn and Roskies, 1972; Buskiewicz et al., 2009). The latter method is used here, which describes shape using the net amount of angular bend of the curve relative to the starting angle as a function of arc length _φ(l)_ = _θ(l)_ - _θ(_ 0 _)_, as shown in Fig. 2. The main advantage of using this formulation is invariance to translation, rotation and scaling of the curve so that the _shape_ of a coupler curve is represented, independently of the position and size of the linkage producing it. The Fourier descriptors can also be normalized to 30 N. Khan et al.: Dimensional synthesis of mechanical linkages Figure 1. A four-bar linkage. Figure 2. Net angular bend of curve boundary as a function of curve length. remove dependence on starting point of the curve, direction of traversing the curve and to remove the difference between mirror image curves; these properties are irrelevant to synthesis of mechanisms. After a change of variable to remove length dependence, _t_ = <sup><u>2</u></sup> _L_ <sup>_<u>πl</u>_</sup> <sup>,</sup> <sup>and</sup> <sup>addition</sup> <sup>of</sup> <sup>a</sup> <sup>linear</sup> <sup>part</sup> <sup>to</sup> <sup>remove</sup> <sup>discontinu-</sup> ities, the function to be expanded in a Fourier series is given by Eq. (1). + _t_ _t ϵ_ [0 _,_ 2 _π_ ] _,_ (1) RBF. ANN used consists of 50 input nodes, 50 to 750 nodes in the single hidden layer and 5 nodes in the output layer. A constrained local optimization technique is used to refine linkage parameters. Vasiliu and Yannou (2001) use normalized Fourier descriptors of the boundary to represent curve shape and then use an ANN with 17 input neurons, 2 hidden layers of 22 neurons each and 5 output neurons to synthesize four-bar mechanisms for path generation. Xie and Chen (2007) discuss motion synthesis of a crank-rocker based on neural networks. The angle of the coupler link and the position of the coupler point are first mapped onto a curve in image space, which is then described by a two-dimensional Fourier transform. A separate three-layered ANN is designed for relating each link dimension to the curve shape. It is not clear, however, how a network can model the relation of curve shape to one link dimension, without reference to other links. Galan-Marin et al. (2009) use wavelet descriptors and neural networks for linkage synthesis. Peñuñuri et al. (2011) propose combined synthesis for function, path, and motion generation by combining the objective functions of all three. Kim and Yoo (2012) demonstrate simultaneous number and dimension synthesis for function generation problems. Ebrahimi and Payvandy (2015) use the structural error objective function but add a penalty for violation of workspace limits. They demonstrate the use of the imperial competitive algorithm, a variation of genetic algorithms, to solve the problem. In the next section, the methodology of the work is outlined, including the equations used. Section 3 presents the design of the ANN, including the structure of network and details of training and testing, followed by some example problems. Finally, a discussion of the results is presented and conclusions drawn in Sect. 4. 2 Methodology The methodology used in this work comprises the following steps: 1. Dimensions for a large number of four-bar mechanisms were generated at random, keeping link length ratios within a reasonable limit and ensuring all mechanisms are crank-rockers so that the coupler curves produced are closed curves. 2. Coupler curves of the generated mechanisms were obtained, each as a set of points in the plane. 3. Each coupler curve was transformed into its Fourier descriptors and descriptors were normalized. 4. An ANN was designed to take Fourier descriptors of the generated curves as the input and corresponding mechanism dimensions as the output or target values. The ANN was trained using the data generated. _ϕ_ <sup>∗</sup> _(t)_ = _ϕ_ - _<u>Lt</u>_ 2 _π_ where _L_ is the total length of the curve. This periodic function is expanded in a Fourier series and the coefficients of the series are termed the Fourier descriptors. Work on linkage synthesis using ANNs is not extensive. Hoskins and Kramer (1993) used a radial basis function (RBF) ANN in combination with optimization techniques to construct an approximate inverse model of four-bar linkage. In that work, coupler curve shape is represented by power spectrum Fourier transform of curvature versus length. The Mech Sci 6 29–34 2015 www mech-sci net/6/29/2015/ N. Khan et al.: Dimensional synthesis of mechanical linkages 31 2.2 Calculation of coupler curves As shown in Fig. 3, the positions of various links are represented as variables in the complex plane. All link lengths are known, as well as angles of _r_ 1 (taken as zero) and _r_ 2. The following calculations (Eqs. 3–8) determine the position of the coupler point P. _r_ 7 = _r_ 2 − _r_ 1 (3) _ψ_ = cos <sup>−1</sup> - _r_ <u>4</u> <sup>2</sup> <sup>+</sup> <sup>_r_</sup> <u>7</u> <sup>2</sup> <sup>−</sup> <sup>_r_</sup> <u>3</u> <sup>2</sup> 2 _r_ 4 _r_ 7 (4) Figure 3. Four-bar representation for analysis. 5. The trained network was tested by presenting new data to it. Results were confirmed by numerical as well as visual comparison of desired and proposed curves. 6. To determine the four-bar mechanism that will reproduce any desired curve, the curve is first converted to its Fourier descriptors, which are then presented as input to the trained ANN. The mechanism dimensions produced by the ANN are further refined by using a local optimization procedure. Each step is explained below in some detail. 2.1 Generation of crank-rockers With reference to Fig. 3, a four-bar linkage can be represented by the lengths of its four links plus two variables for locating the coupler point P, the path tracing point, on link 3. For scale independence, the length of link 2 is taken as unity and limits are imposed on the lengths of other links to obtain a practical linkage. The five variables selected to represent a four-bar are as given in Eq. (2). 1 ≤ _r_ _i_ ≤ 5 _i_ = 1 _,_ 3 _,_ 4 _,_ 5 and 0 ≤ _θ_ c ≤ 2 _π_ (2) Link lengths are generated at random but still meeting the Grashof conditions, as follows: – Choose 1 ≤ _p_ ≤ 5 at random. – Choose _l_ at random such that _p_ ≤ _l_ ≤ 5. – Choose _q_ at random such that _s_ + _l_ ≤ _p_ + _q_ ≤ _p_ + _l_, where _s_ = _r_ 2 to ensure a crank-rocker. – The three lengths _p_, _q_, and _l_ are arbitrarily assigned to _r_ 1, _r_ 3, and _r_ 4. The other two variables are generated at random between chosen limits. Five thousand random crank-rocker linkages were generated using this procedure. arg _(_ _r_ 4 _)_ = arg _(_ _r_ 7 _)_ - _ψ_ (5) _r_ 3 = _r_ 4 − _r_ 7 (6) arg _(_ _r_ 5 _)_ = arg _(_ _r_ 3 _)_ + _θc_ (7) _r_ P = _r_ 2 + _r_ 5 (8) Repeating the calculations by varying the crank angle in the range ≤ _θ_ 2 ≤ 2 _π_, a set of complex numbers, _V_ _i_, are obtained, which are the vertices of the coupler curve. 2.3 Calculation of Fourier descriptors The curve is converted from vertices to length–angle representation, using Eqs. (9)–(11). _�_ _l_ _i_ = _V_ _i_ +1 − _V_ _i_ (9) _l_ _i_ = _l_ _i_ −1 + | _�_ _l_ _i_ | (10) _�ϕi_ = arg _(�_ _l_ _i_ +1 _)_ - arg _(�_ _l_ _i),_ (11) where _�_ _l_ _i_ is the _i_ th side of the polygonal curve, _l_ _i_ is the length from the first to the _i_ th vertex, and _�_ ∅ _i_ is the change in angle at the _i_ th vertex. The Fourier descriptors of the curve, 2 _m_ + 1 in number, are then calculated from Eqs. (12)–(16) (Zahn and Roskies, 1972). The polar form of Fourier descriptors was selected as it is easier to normalize. _n_ _i_ =1 _µ_ 0 = - _π_ - <sup><u>1</u></sup> _L_ _µ_ 0 = - _π_ - <sup><u>1</u></sup> _l_ _i �ϕi_ (12) _ak_ = - <sup><u>1</u></sup> _kπ_ _n_ _�ϕi_ sin <sup><u>2</u></sup> <sup>_<u>πkli</u>_</sup> _k_ = 1 _,..., m_ (13) _L_ _i_ =1 _bk_ = - <sup><u>1</u></sup> _kπ_ _n_ _�ϕi_ cos <sup><u>2</u></sup> <sup>_<u>πkli</u>_</sup> _k_ = 1 _,..., m_ (14) _L_ _i_ =1 www mech-sci net/6/29/2015/ Mech Sci 6 29–34 2015 32 N. Khan et al.: Dimensional synthesis of mechanical linkages 0.4 0.2 0 -0.2 -0.4 -0.6 -0.8 -1 -1.2 Original curve ANN output -0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 Figure 4. Example 1 (top row) and 2 (bottom row). On the left, the ANN output and on the right the optimized curve, both superposed on the original curve. _k_ <sup>2</sup> <sup>_k_</sup> <sup>= 1</sup> <sup>_,..., m_</sup> (15) _Ak_ = _ak_ <sup>2</sup> _k_ <sup>2</sup> <sup>+</sup> <sup>_b_</sup> _k_ <sup>2</sup> _αk_ = tan <sup>−1</sup> <sup>_<u>ak</u>_</sup> _bk_ _k_ = 1 _,...,m_ (16) dimensions of a four-bar mechanism). To train the network, it is provided with a large set of inputs and corresponding outputs so that it “learns” the relationship between inputs and outputs. After the network has been trained and tested, it can be used by providing an input (Fourier descriptors of a desired curve) and obtaining the output (dimensions of the mechanism that will produce a curve shaped like the desired curve). A multilayer feed-forward neural network was selected and trained using back propagation. After some experimentation, _m_ = 11 was selected in the above equations so that a total of 22 Fourier descriptors were generated for each curve. Accordingly, the neural network had 22 neurons in the input layer. The output layer had 5 neurons, representing linkage dimensions. The number of hidden layers and the number of neurons in each layer were varied until satisfactory performance was obtained. Specifications of the final network architecture are shown in Table 1. The functions named in that table are Matlab Neural Network Toolbox <sup>™</sup> functions. It is useful to scale the inputs and outputs before training the neural network so that they fall within a specific range. This allows for efficient training but requires keeping track of scaled and unscaled values. Matlab mapping function mapminmax was used to provide linear scaling in the range [−1 _,_ 1]. Training was carried out using the Broyden– The amplitudes _Ak_ are already normalized, while the phase angles _αk_ are normalized as follows to remove dependence on starting point, direction of curve traversal and mirroring (Buskiewicz et al., 2009). _�α_ = <sup>_<u>αj</u>_</sup> _j_ <sup>, where</sup> <sup>_j_</sup> <sup>is the index of</sup> the first non-zero harmonic. For _k_ = 1 _,...,m_, _αk_ = _(αk_ - _k�α)_ mod 2 _π._ (17) If _αk_ _> π,αk_ = _(αk_ - _π)._ (18) If _αk_ _>_ <sup>_<u>π</u>_</sup> (19) 2 <sup>_,αk_</sup> <sup>=</sup> <sup>_(π_</sup> <sup>−</sup> <sup>_αk)._</sup> 3 Design of artificial neural network An artificial neural network (ANN) is a mathematical structure that takes a vector of inputs (22 normalized Fourier descriptors of a curve) and produces a set of outputs (the five Mech Sci 6 29–34 2015 www mech-sci net/6/29/2015/ N. Khan et al.: Dimensional synthesis of mechanical linkages 33 Figure 5. Example 3. (Left panel) The original curve, and (right panel) the original and the final curves compared. Fletcher–Goldfarb–Shanno algorithm to reduce the performance function msereg, which is the average squared error between actual output and the desired output of the network. 3.1 Simulation and testing After designing and training the neural network using 5000 cases, it was tested for a new set of 50 coupler curves not used in training. The dimensions of 50 four-bar linkages output by the network were then used to construct coupler curves. Checking of results was carried out by comparing dimensions of linkages and values of Fourier descriptors as well as visual comparison of the shapes of curves. 3.2 Example problems In the first two example problems, a four-bar was chosen at random, the Fourier descriptors of its coupler curve calculated and supplied as input to the trained ANN. The ANN output dimensions of a four-bar were then optimized to minimize the difference between Fourier descriptors of input and output curves. Table 2 shows the comparison of linkage dimensions for the original four-bar, the output of ANN, and the final, optimized four-bar for each example. Figure 4 shows the comparison of the curve shapes in each case. For comparison, the output curves were superposed on the original curve as follows (Buskiewicz et al., 2009): the output curve is translated so that its centroid is positioned over the centroid of the original curve. The curve is then rotated about the centroid so that the orientations of the principal axes of the two curves match and finally the curve is scaled so that the lengths of the two curves match. In the third example, a general desired curve was chosen rather than a coupler curve, as shown in Fig. 5 (left panel). The four-bar mechanism obtained has the coupler curve shown in Fig. 5 (right panel) and the following dimensions: _r_ 1 = 1 _._ 1711 _,_ _r_ 3 = 13 _._ 8151 _,_ _r_ 4 = 13 _._ 8736 _,_ _r_ 5 = 2 _._ 6779 _,θc_ = −0 _._ 8907 rad _._ (20) Table 1. Structure of ANN used. No. of input neurons 22 No. of hidden layers 03 No. of neurons in hidden layers [22,5,5] Transfer function of hidden layers Tan-sigmoid No. of output neurons 5 Transfer function of output neurons Purelin Training function Trainbfg Network performance function mseregs 4 Discussion and conclusions In the first two examples presented, the desired curve was a coupler curve obtained from a known four-bar mechanism. The algorithm was able to find the same four-bar mechanism in the first case but converged to a different four-bar having similar coupler curve. This was observed in other example cases also. Sometimes the curve obtained is a mirror image of the original curve; however, that problem is easily corrected by “flipping” the four-bar. In the third example, a general desired curve (not being a coupler curve) was used to determine the dimensions of a four-bar that will produce a coupler curve similar in shape. The results show that although the algorithm gets close, a significant difference remains in curve shape. This is most likely due to the limitations of available coupler curves that a four-bar can generate, rather than problems in the algorithm. In conclusion, a new method for approximate dimensional synthesis of planar linkages has been proposed and examples of application presented. The method is seen to be successful provided the desired path is close to the type of curves the mechanism is able to create. Although four-bar coupler curves have wide-ranging shapes, it should be noted that the method is limited to simple, closed curves; open curves (such as those produced by double-rocker mechanisms) and curves with crunodes are excluded. www mech-sci net/6/29/2015/ Mech Sci 6 29–34 2015 34 N. Khan et al.: Dimensional synthesis of mechanical linkages Table 2. Results for examples 1 and 2. Four-bar dimensions _r_ 1 _r_ 3 _r_ 4 _r_ 5 _θc_ (rad) Example 1 Input four-bar 2.9587 3.4723 3.5771 3.3454 3.3771 ANN output four-bar 3.1876 3.4862 3.6964 3.1337 3.4049 Optimized four-bar 2.9662 3.5503 3.6504 3.3455 3.3798 Example 2 Input four-bar 3 3 2.5 1 5 ANN output four-bar 1.9640 2.1175 2.0717 0.7483 2.4803 Optimized four-bar 3.5368 2.7720 2.2270 1.0612 1.0333 Edited by: L. Birglen Reviewed by: two anonymous referees References Buskiewicz, J., Starosta, R., and Walczak, T.: On the application of the curve curvature in path synthesis, Mech. Mach. Theory, 44, 1223–1239, 2009. Cabrera, J. A., Simon, A., and Prado, M.: Optimal synthesis of mechanisms with genetic algorithms, Mech. Mach. Theory, 37, 1165–1177, 2002. Diab, N. and Smaili, A.: Optimum exact/approximate point synthe sis of planar mechanisms, Mech. Mach. Theory, 43, 1610–1624, 2008. Ebrahimi, S. and Payvandy, P.: Efficient constrained synthesis of path generating four-bar mechanisms based on the heuristic optimization algorithms, Mech. Mach. Theory, 85, 189–204, 2015. Galan-Marin, G., Alonso, F., and Del Castillo, J.: Shape opti mization for path synthesis of crank-rocker mechanisms using a wavelet-based neural network, Mech. Mach. Theory, 44, 1132– 1143, 2009. Hoskins, J. C. and Kramer, G. A.: Synthesis of mechanical link ages using artificial neural networks and optimization, Neural Networks, IEEE International Conference, 2, 822-j–822-n, 1993. Kim, B. S. and Yoo, H. H.: Unified synthesis of a planar four-bar mechanism for function generation using a spring-connected arbitrarily sized block model, Mech. Mach. Theory, 49, 141–156, 2012. Laribi, M. A., Mlika, A., Romdhane, L., and Zeghloul, S.: A com bined genetic algorithm–fuzzy logic method (GA–FL) in mechanisms synthesis, Mech. Mach. Theory, 39, 717–735, 2004. Lin, W. Y.: A GA–DE hybrid evolutionary algorithm for path syn thesis of four-bar linkage, Mech. Mach. Theory, 45, 1096–1107, 2010. McGarva, J. and Mullineux, G.: Harmonic representation of closed curves, Appl. Math. Model., 17, 213–218, 1993. Peñuñuri, F., Peón-Escalante, R., Villanueva, C., and Pech-Oy, D.: Synthesis of mechanisms for single and hybrid tasks using differential evolution, Mech. Mach. Theory, 46, 1335–1349, 2011. Persoon, E. and Fu, K.: Shape discrimination using Fourier descrip tors, IEEE Trans. Pattern Analysis and Machine Intelligence, PAMI-8, 388–397, 1986. Sancibrian, R., Viadero, F., Garcıa, P., and Fernandez, A.: Gradient based optimization of path synthesis problems in planar mechanisms, Mech. Mach. Theory, 39, 839–856, 2004. Sandor, G. and Erdman, A.: Advanced Mechanism Design: Analy sis and Synthesis, Prentice-Hall, 1988. Starosta, R.: Application of genetic algorithm and Fourier coeffi cients (GA–FC) in mechanism synthesis, J. Theor. Appl. Mech., 46, 395–411, 2008. Tomas, J.: The synthesis of mechanisms as a nonlinear program ming problem, J. Mechanisms, 3, 119–130, 1968. Ullah, I. and Kota, S.: Globally-optimal synthesis of mechanisms for path generation using simulated annealing and Powell’s method, Proceedings of the 1996 ASME Design Engineering Technical Conferences, 96-DETC/MECH-1225, Irvine, California, USA, 1996. Vasiliu, A. and Yannou, B.: Dimensional synthesis of planar mecha nisms using neural networks: Application to path generator linkages, Mech. Mach. Theory, 36, 299–310, 2001. Xie, J. and Chen, Y.: Application of back-propagation neural net work to synthesis of whole cycle motion generation mechanism, Twelfth IFToMM World Congress, Besancon, France, 2007. Zahn, C. T. and Roskies, R. Z.: Fourier descriptors for plane closed curves, IEEE T. Pattern Anal., C-21, 269–281, 1972. Zhang, C., Norton, R., and Hammond, T.: Optimization of parame ters for specified path generation using an atlas of coupler curves of geared five bar linkages, Mech. Mach. Theory, 19, 459–466, 1984. Mech Sci 6 29–34 2015 www mech-sci net/6/29/2015/

섹션 본문 48문단 · 14,874자

(제목 없음)

1Dimensional synthesis of mechanisms to trace given paths is an important problem with no exact solution.In this paper, the problem is divided into representation of curve shape and learning the relation between curve shape and mechanism dimensions.Curve shape is represented by Fourier descriptors of cumulative angular deviation of the curve, which do not depend on the position or scale of the curve.An artificial neural network (ANN) is trained to learn the (unknown) relation between the Fourier descriptors of a planar curve and the dimensions of the mechanism tracing that curve.Presented with any simple, closed, planar curve, the ANN suggests the dimensions of a four-bar whose coupler curve is similar in shape.A local optimization procedure further refines the results.Examples presented indicate the method is successful as long as the curve shape is such that the mechanism is able to trace it.

Introduction

2Mechanical linkages are used extensively for transforming motion and transmitting power in industrial machinery, agriculture, construction, automobiles and household gadgets.The design of linkages involves determining dimensions of constituting links so that the linkage moves in a manner necessary to carry out the required task (Sandor and Erdman, 1988).

3Figure 1 shows a common four-bar linkage whose tracer point P generates a path known as the coupler curve when the input link rotates.The problem of dimensional synthesis for path generation requires calculation of suitable dimensions for the linkage so that point P traces a desired continuous path.An exact solution for this problem is not possible because of the limited number of dimensions available, but various techniques have been used for approximate solutions.The most common techniques used include conventional optimization methods (Tomas, 1968;Sancibrian et al., 2004;Diab and Smaili, 2008), using atlases of mechanisms (Zhang et al., 1984), simulated annealing (Ullah and Kota, 1996), and genetic algorithms or evolutionary algorithms (Cabrera et al., 2002;Laribi et al., 2004;Starosta, 2008;Lin, 2010).

4In this research, normalized Fourier descriptors are used to represent the shape of coupler curves and artificial neural networks (ANNs) are used for approximating the inverse relationship between curve shape and linkage dimensions.A brief introduction to Fourier descriptors is presented below, followed by review of the relevant research.

5Fourier descriptors are functions used for description of shapes of object boundaries (or of any two-dimensional, simple closed curve).The boundary of a shape is represented by a periodic function that, when expanded in a Fourier series, yields a set of coefficients containing the shape information.Different types of Fourier descriptors have been proposed in the literature, including Fourier descriptors of the boundary (McGarva and Mullineux, 1993;Persoon and Fu, 1986) and Fourier descriptors of the angular orientation of the curve (Zahn and Roskies, 1972;Buskiewicz et al., 2009).The latter method is used here, which describes shape using the net amount of angular bend of the curve relative to the starting angle as a function of arc length φ(l) = θ(l) − θ (0), as shown in Fig. 2. The main advantage of using this formulation is invariance to translation, rotation and scaling of the curve so that the shape of a coupler curve is represented, independently of the position and size of the linkage producing it.The Fourier descriptors can also be normalized to Published by Copernicus Publications.remove dependence on starting point of the curve, direction of traversing the curve and to remove the difference between mirror image curves; these properties are irrelevant to synthesis of mechanisms.

6After a change of variable to remove length dependence, t = 2πl L , and addition of a linear part to remove discontinuities, the function to be expanded in a Fourier series is given by Eq. (1).

7where L is the total length of the curve.This periodic function is expanded in a Fourier series and the coefficients of the series are termed the Fourier descriptors.Work on linkage synthesis using ANNs is not extensive.Hoskins and Kramer (1993) used a radial basis function (RBF) ANN in combination with optimization techniques to construct an approximate inverse model of four-bar linkage.In that work, coupler curve shape is represented by power spectrum Fourier transform of curvature versus length.The RBF. ANN used consists of 50 input nodes, 50 to 750 nodes in the single hidden layer and 5 nodes in the output layer.A constrained local optimization technique is used to refine linkage parameters.Vasiliu and Yannou (2001) use normalized Fourier descriptors of the boundary to represent curve shape and then use an ANN with 17 input neurons, 2 hidden layers of 22 neurons each and 5 output neurons to synthesize four-bar mechanisms for path generation.Xie and Chen (2007) discuss motion synthesis of a crank-rocker based on neural networks.The angle of the coupler link and the position of the coupler point are first mapped onto a curve in image space, which is then described by a two-dimensional Fourier transform.A separate three-layered ANN is designed for relating each link dimension to the curve shape.It is not clear, however, how a network can model the relation of curve shape to one link dimension, without reference to other links.Galan-Marin et al. (2009) use wavelet descriptors and neural networks for linkage synthesis.Peñuñuri et al. (2011) propose combined synthesis for function, path, and motion generation by combining the objective functions of all three.Kim and Yoo (2012) demonstrate simultaneous number and dimension synthesis for function generation problems.Ebrahimi and Payvandy (2015) use the structural error objective function but add a penalty for violation of workspace limits.They demonstrate the use of the imperial competitive algorithm, a variation of genetic algorithms, to solve the problem.

8In the next section, the methodology of the work is outlined, including the equations used.Section 3 presents the design of the ANN, including the structure of network and details of training and testing, followed by some example problems.Finally, a discussion of the results is presented and conclusions drawn in Sect. 4.

Methodology

9The methodology used in this work comprises the following steps:

101. Dimensions for a large number of four-bar mechanisms were generated at random, keeping link length ratios within a reasonable limit and ensuring all mechanisms are crank-rockers so that the coupler curves produced are closed curves.

112. Coupler curves of the generated mechanisms were obtained, each as a set of points in the plane.

123. Each coupler curve was transformed into its Fourier descriptors and descriptors were normalized.

134. An ANN was designed to take Fourier descriptors of the generated curves as the input and corresponding mechanism dimensions as the output or target values.The ANN was trained using the data generated.5.The trained network was tested by presenting new data to it.Results were confirmed by numerical as well as visual comparison of desired and proposed curves.

146. To determine the four-bar mechanism that will reproduce any desired curve, the curve is first converted to its Fourier descriptors, which are then presented as input to the trained ANN.The mechanism dimensions produced by the ANN are further refined by using a local optimization procedure.

15Each step is explained below in some detail.

Generation of crank-rockers

16With reference to Fig. 3, a four-bar linkage can be represented by the lengths of its four links plus two variables for locating the coupler point P, the path tracing point, on link 3.For scale independence, the length of link 2 is taken as unity and limits are imposed on the lengths of other links to obtain a practical linkage.The five variables selected to represent a four-bar are as given in Eq. (2).

171 ≤ r i ≤ 5 i = 1, 3, 4, 5 and 0

18Link lengths are generated at random but still meeting the Grashof conditions, as follows:

19-Choose 1 ≤ p ≤ 5 at random.

20-Choose l at random such that p ≤ l ≤ 5.

21-Choose q at random such that s + l ≤ p + q ≤ p + l, where s = r 2 to ensure a crank-rocker.

22-The three lengths p, q, and l are arbitrarily assigned to r 1 , r 3 , and r 4 .

23The other two variables are generated at random between chosen limits.Five thousand random crank-rocker linkages were generated using this procedure.

Calculation of coupler curves

24As shown in Fig. 3, the positions of various links are represented as variables in the complex plane.All link lengths are known, as well as angles of r 1 (taken as zero) and r 2 .The following calculations (Eqs.3-8) determine the position of the coupler point P.

25arg(r 5 ) = arg(r 3 ) + θ c (7)

26Repeating the calculations by varying the crank angle in the range ≤ θ 2 ≤ 2π , a set of complex numbers, V i , are obtained, which are the vertices of the coupler curve.

Calculation of Fourier descriptors

27The curve is converted from vertices to length-angle representation, using Eqs.( 9)-( 11).

28where l i is the ith side of the polygonal curve, l i is the length from the first to the ith vertex, and ∅ i is the change in angle at the ith vertex.The Fourier descriptors of the curve, 2m + 1 in number, are then calculated from Eqs. ( 12)-( 16) (Zahn and Roskies, 1972).The polar form of Fourier descriptors was selected as it is easier to normalize.

29The amplitudes A k are already normalized, while the phase angles α k are normalized as follows to remove dependence on starting point, direction of curve traversal and mirroring (Buskiewicz et al., 2009).α = α j j , where j is the index of the first non-zero harmonic.

30For k = 1, . .., m,

Design of artificial neural network

31An artificial neural network (ANN) is a mathematical structure that takes a vector of inputs (22 normalized Fourier descriptors of a curve) and produces a set of outputs (the five dimensions of a four-bar mechanism).To train the network, it is provided with a large set of inputs and corresponding outputs so that it "learns" the relationship between inputs and outputs.After the network has been trained and tested, it can be used by providing an input (Fourier descriptors of a desired curve) and obtaining the output (dimensions of the mechanism that will produce a curve shaped like the desired curve).

32A multilayer feed-forward neural network was selected and trained using back propagation.After some experimentation, m = 11 was selected in the above equations so that a total of 22 Fourier descriptors were generated for each curve.Accordingly, the neural network had 22 neurons in the input layer.The output layer had 5 neurons, representing linkage dimensions.The number of hidden layers and the number of neurons in each layer were varied until satisfactory performance was obtained.Specifications of the final network architecture are shown in Table 1.The functions named in that table are Matlab Neural Network Toolbox ™ functions.

33It is useful to scale the inputs and outputs before training the neural network so that they fall within a specific range.This allows for efficient training but requires keeping track of scaled and unscaled values.Matlab mapping function mapminmax was used to provide linear scaling in the range [−1, 1].Training was carried out using the Broyden- Fletcher-Goldfarb-Shanno algorithm to reduce the performance function msereg, which is the average squared error between actual output and the desired output of the network.

Simulation and testing

34After designing and training the neural network using 5000 cases, it was tested for a new set of 50 coupler curves not used in training.The dimensions of 50 four-bar linkages output by the network were then used to construct coupler curves.Checking of results was carried out by comparing dimensions of linkages and values of Fourier descriptors as well as visual comparison of the shapes of curves.

Example problems

35In the first two example problems, a four-bar was chosen at random, the Fourier descriptors of its coupler curve calculated and supplied as input to the trained ANN.The ANN output dimensions of a four-bar were then optimized to minimize the difference between Fourier descriptors of input and output curves.Table 2 shows the comparison of linkage dimensions for the original four-bar, the output of ANN, and the final, optimized four-bar for each example.Figure 4 shows the comparison of the curve shapes in each case.For comparison, the output curves were superposed on the original curve as follows (Buskiewicz et al., 2009): the output curve is translated so that its centroid is positioned over the centroid of the original curve.The curve is then rotated about the centroid so that the orientations of the principal axes of the two curves match and finally the curve is scaled so that the lengths of the two curves match.

36In the third example, a general desired curve was chosen rather than a coupler curve, as shown in Fig. 5 (20)

Discussion and conclusions

37In the first two examples presented, the desired curve was a coupler curve obtained from a known four-bar mechanism.

38The algorithm was able to find the same four-bar mechanism in the first case but converged to a different four-bar having similar coupler curve.This was observed in other example cases also.Sometimes the curve obtained is a mirror image of the original curve; however, that problem is easily corrected by "flipping" the four-bar.

39In the third example, a general desired curve (not being a coupler curve) was used to determine the dimensions of a four-bar that will produce a coupler curve similar in shape.The results show that although the algorithm gets close, a significant difference remains in curve shape.This is most likely due to the limitations of available coupler curves that a four-bar can generate, rather than problems in the algorithm.

40In conclusion, a new method for approximate dimensional synthesis of planar linkages has been proposed and examples of application presented.The method is seen to be successful provided the desired path is close to the type of curves the mechanism is able to create.Although four-bar coupler curves have wide-ranging shapes, it should be noted that the method is limited to simple, closed curves; open curves (such as those produced by double-rocker mechanisms) and curves with crunodes are excluded.Edited by: L. Birglen Reviewed by: two anonymous referees

Figure 1 .

41Figure 1.A four-bar linkage.

Figure 2 .

42Figure 2. Net angular bend of curve boundary as a function of curve length.

Figure 3 .

43Figure 3. Four-bar representation for analysis.

Figure 4 .

44Figure 4. Example 1 (top row) and 2 (bottom row).On the left, the ANN output and on the right the optimized curve, both superposed on the original curve.

Figure 5 .

45Figure 5. Example 3. (Left panel) The original curve, and (right panel) the original and the final curves compared.

46(left panel).The four-bar mechanism obtained has the coupler curve shown in Fig.5(right panel) and the following dimensions: r 1 = 1.1711, r 3 = 13.8151,r 4 = 13.8736,r 5 = 2.6779, θ c = −0.8907rad.

Table 1 .

47Structure of ANN used.

Table 2 .

48Results for examples 1 and 2.

참고문헌 20건

  1. Application of genetic algorithm and Fourier coefficients (GA-FC) in mechanism synthesis Journal of Theoretical and Applied Mechanics/Mechanika Teoretyczna i Stosowana · Exeley Inc · 2008
  2. Synthesis of mechanisms for single and hybrid tasks using differential evolution Mechanism and Machine Theory · Elsevier BV · 2011 10.1016/j.mechmachtheory.2011.05.013
  3. Unified synthesis of a planar four-bar mechanism for function generation using a spring-connected arbitrarily sized block model Mechanism and Machine Theory · Elsevier BV · 2011 10.1016/j.mechmachtheory.2011.10.013
  4. Efficient constrained synthesis of path generating four-bar mechanisms based on the heuristic optimization algorithms Mechanism and Machine Theory · Elsevier BV · 2014 10.1016/j.mechmachtheory.2014.11.021
  5. Dimensional synthesis of planar mechanisms using neural networks: application to path generator linkages Mechanism and Machine Theory · Elsevier BV · 2001 10.1016/s0094-114x(00)00037-9
  6. Shape Discrimination Using Fourier Descriptors IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1986 10.1109/tpami.1986.4767799
  7. Optimization of parameters for specified path generation using an atlas of coupler curves of geared five-bar linkages Mechanism and Machine Theory · Elsevier BV · 1984 10.1016/0094-114x(84)90052-1
  8. A GA–DE hybrid evolutionary algorithm for path synthesis of four-bar linkage Mechanism and Machine Theory · Elsevier BV · 2010 10.1016/j.mechmachtheory.2010.03.011
  9. Harmonic representation of closed curves Applied Mathematical Modelling · Elsevier BV · 1993 10.1016/0307-904x(93)90109-t
  10. On the application of the curve curvature in path synthesis Mechanism and Machine Theory · Elsevier BV · 2008 10.1016/j.mechmachtheory.2008.08.001
  11. Gradient-based optimization of path synthesis problems in planar mechanisms Mechanism and Machine Theory · Elsevier BV · 2004 10.1016/j.mechmachtheory.2004.02.012
  12. A combined genetic algorithm–fuzzy logic method (GA–FL) in mechanisms synthesis Mechanism and Machine Theory · Elsevier BV · 2004 10.1016/j.mechmachtheory.2004.02.004
  13. Shape optimization for path synthesis of crank-rocker mechanisms using a wavelet-based neural network Mechanism and Machine Theory · Elsevier BV · 2008 10.1016/j.mechmachtheory.2008.09.006
  14. Optimum exact/approximate point synthesis of planar mechanisms Mechanism and Machine Theory · Elsevier BV · 2008 10.1016/j.mechmachtheory.2007.12.006
  15. Optimal synthesis of mechanisms with genetic algorithms Mechanism and Machine Theory · Elsevier BV · 2002 10.1016/s0094-114x(02)00051-4
  16. Fourier Descriptors for Plane Closed Curves IEEE Transactions on Computers · Institute of Electrical and Electronics Engineers · 1972 10.1109/tc.1972.5008949
  17. The synthesis of mechanisms as a nonlinear programming problem Journal of Mechanisms · Elsevier BV · 1968 10.1016/0022-2569(68)90351-0
  18. Synthesis of mechanical linkages using artificial neural networks and optimization IEEE International Conference on Neural Networks · 2002 10.1109/icnn.1993.298663
  19. Advanced mechanism design: Analysis and synthesis Mechanism and Machine Theory · Elsevier BV · 1985 10.1016/0094-114x(85)90062-x
  20. Globally-Optimal Synthesis of Mechanisms for Path Generation Using Simulated Annealing and Powell’s Method 1996 10.1115/96-detc/mech-1225