<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">OALibJ</journal-id><journal-title-group><journal-title>Open Access Library Journal</journal-title></journal-title-group><issn pub-type="epub">2333-9705</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/oalib.1106788</article-id><article-id pub-id-type="publisher-id">OALibJ-103263</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Biomedical&amp;Life Sciences</subject><subject> Business&amp;Economics</subject><subject> Chemistry&amp;Materials Science</subject><subject> Computer Science&amp;Communications</subject><subject> Earth&amp;Environmental Sciences</subject><subject> Engineering</subject><subject> Medicine&amp;Healthcare</subject><subject> Physics&amp;Mathematics</subject><subject> Social Sciences&amp;Humanities</subject></subj-group></article-categories><title-group><article-title>
 
 
  Optimization Design of Cutting Parameters Based on the Support Vector Machine and Particle Swarm Algorithm
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Chengwen</surname><given-names>Yang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Hao</surname><given-names>Jiang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Baolin</surname><given-names>Liu</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>The College of Nuclear Technology and Automation Engineering, Chengdu University of Technology, Chengdu, China</addr-line></aff><pub-date pub-type="epub"><day>01</day><month>09</month><year>2020</year></pub-date><volume>07</volume><issue>09</issue><fpage>1</fpage><lpage>8</lpage><history><date date-type="received"><day>4,</day>	<month>September</month>	<year>2020</year></date><date date-type="rev-recd"><day>26,</day>	<month>September</month>	<year>2020</year>	</date><date date-type="accepted"><day>29,</day>	<month>September</month>	<year>2020</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  
    In the field of machining, the processing design of the cutting parameters has the characteristics of greater subjectivity and experience. For obtaining the ideal roughness of surface (Ra), the number of machining experiments is carried out. It makes a lot of waste of materials, labor, energy, and so on. In addition, there is a highly non-linear function relationship between the three elements of cutting: cutting speed (vc), feed (f), cutting depth (ap) and roughness of the surface. It is hard to use mathematical equations to express the relationship clearly. So, in this paper, the support vector machine (SVM) will be used to establish the model of cutting elements and roughness of the surface. Then, taking roughness of surface as optimization goal and cutting elements as optimization parameters, the particle swarm algorithm (PSO) will be carried out to obtain a group of cutting parameters for the ideal roughness surface. It provides an easy, accurate, and feasible optimization design method for machining cutting parameters optimization design. 
  
 
</p></abstract><kwd-group><kwd>Particle Swarm Algorithm</kwd><kwd> Support Vector Machine</kwd><kwd> Cutting Parameters Optimization Design</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Stainless steel is an excellent high-performance alloy steel, which can resist corrosion in the air or in chemical corrosive media, and has a wide range of application prospects. Stainless steel has strong toughness, low thermal conductivity, and serious work hardening, which leads to defects such as large cutting force, high cutting temperature, and tools that are prone to adhesion and wear. Therefore, stainless steel is a difficult-to-machine metal material [<xref ref-type="bibr" rid="scirp.103263-ref1">1</xref>]. When turning 304 stainless steel, Support vector machine (SVM) and Particle swarm algorithm (PSO) are used to optimize the cutting parameters [<xref ref-type="bibr" rid="scirp.103263-ref2">2</xref>]. The cutting parameters are mainly the three elements of cutting, including cutting speed (v<sub>c</sub>), feed (f), and back-cutting (a<sub>p</sub>). The optimization target is the surface roughness of the workpiece in order to achieve the expected surface quality.</p></sec><sec id="s2"><title>2. Support Vector Machine Theory (SVM)</title><p>Data-based machine learning is an important aspect of modern intelligent technology. Machine learning is essentially an approximation of a true model of a problem. Research is to start from observation data (samples) to find the rules used to predict unknown data.</p><p>Support vector machine (SVM) is a machine learning method developed in the mid-1990s. This method is based on the statistical learning theory. This method is based on statistical learning theory, which improves the generalization ability of learning machine by seeking the structural risk minimization, and completes the minimization of empirical risk and confidence range. Therefore, when the number of statistical samples is small, we can also obtain the purpose of good statistical laws. Because of its outstanding learning performance, this field has become the focus of many scholars. This technology has also become a research hotspot in the machine learning community and has been successfully applied in many fields, such as face recognition, handwritten number recognition, automatic text classification, and machine translation, etc. [<xref ref-type="bibr" rid="scirp.103263-ref3">3</xref>].</p><p>The basic idea of SVM is to use the kernel function to map the input sample space to the high-dimensional feature space, find an optimal classification surface in the high-dimensional space, and obtain the nonlinear relationship between input and output variables [<xref ref-type="bibr" rid="scirp.103263-ref4">4</xref>].</p><p>Assume that the training data set T = { ( x 1 , y 1 ) , ( x 2 , y 2 ) , ⋯ , ( x N , y N ) } , in a given feature space, where x i ∈ R n is the i-th feature vector, also called Is an example; y i ∈ { 1 , − 1 } , i = 1 , 2 , ⋯ , N . N is the class label of x i , when y i = 1 , x i is called a positive example, when y i = − 1 , x i is called Negative case. ( x 1 , y 1 ) is the sample point. The key of the algorithm is to establish a classification hyperplane as the decision surface, which maximizes the separation edge of positive and negative examples. The classification hyperplane is to find the function:</p><p>φ ( w ) = 1 2 ‖ w ‖ 2 (1)</p><p>s .t .     y i ( w ⋅ x i + b ) ≥ 1 , i = 1 , 2 , ⋯ , N</p><p>where: w is the normal vector of the hyperplane, b is the constant term of the hyperplane, x<sub>i</sub> is the training sample, and y<sub>i</sub> is the type of the sample.</p><p>In practice, there may be linear inseparability. At this time, it can be mapped to a high-dimensional space. When the sample is linear and inseparable, mapping it to a high-dimensional space will have a particularly large dimension, which makes calculation difficult. At this time, the kernel function plays an important role in dealing with the problem. Its value lies in the fact that although the feature is also converted from low-dimensional to high-dimensional, the difference is that the method will calculate in low-dimensional in advance, and then it will essentially. The classification effect is manifested in high dimensions, thus avoiding complicated calculations directly in high-dimensional space.</p><p>In practical applications, we often rely on prior domain theoretical knowledge to select an effective kernel function. The widely used kernel functions mainly include:</p><p>Polynomial kernel and Gaussian kernel linear kernel function:</p><p>k ( x 1 , x 2 ) = ( 〈 x 1 , x 2 〉 + R ) d (2)</p><p>k ( x 1 , x 2 ) = exp { − ‖ x 1 − x 2 ‖ 2 2 σ 2 } (3)</p><p>k ( x 1 , x 2 ) = 〈 x 1 , x 2 〉 (4)</p><p>According to the different problems and data, choosing different parameters will actually get different kernel functions. At the same time, different selection of kernel function parameters will directly affect the prediction accuracy and classification performance of the support vector machine.</p>Particle Swarm Optimization Algorithm (PSO)<p>Particle swarm optimization (PSO) was first proposed by Kennedy [<xref ref-type="bibr" rid="scirp.103263-ref5">5</xref>] and Eberhart [<xref ref-type="bibr" rid="scirp.103263-ref6">6</xref>] in 1995, and its basic concept originated from the study of bird flock foraging behavior. The main principle of the particle swarm algorithm is: based on the observation of animal group movement behavior, the information sharing of individuals in the group is used for reference to make the movement of the entire group occur in the problem solving space, the evolution process from disorder to order. The optimal solution is finally obtained. This algorithm is a global parallel optimization algorithm. Compared with other optimization algorithms, it has the advantages of short evolution time and high optimization accuracy [<xref ref-type="bibr" rid="scirp.103263-ref7">7</xref>]. Since the particle swarm algorithm was proposed, it has been successfully applied to solve the traveling salesman problem, capacitor allocation problem [<xref ref-type="bibr" rid="scirp.103263-ref8">8</xref>] and machine learning [<xref ref-type="bibr" rid="scirp.103263-ref9">9</xref>] and other related fields.</p><p>The PSO algorithm is to simulate the intelligent search of the community generated by the mutual cooperation and competition between bird groups [<xref ref-type="bibr" rid="scirp.103263-ref10">10</xref>]. The algorithm simulates the solution of the optimization problem as particles in the search space, these particles can ignore their own volume and mass, but fly at a definite speed [<xref ref-type="bibr" rid="scirp.103263-ref11">11</xref>]. The particle selects the appropriate calculation function to find its own fitness, and dynamically adjusts its flight speed and corresponding points through the current best fitness value of itself and the community, and finally finds the global best. The particle adjustment speed V and the point position X are shown in formula (5) respectively.</p><p>{ V i k + 1 = w V i k + c 1 r 1 ( p i k − X i k ) + c 2 r 2 ( p g k − X i k ) X i k + 1 = X i k + V i k + 1 (5)</p><p>In the formula, w is the inertia weight, v is the current iteration number, i = 1 , 2 , ⋯ , m ; r<sub>1</sub>, r<sub>2</sub> is a random number uniformly distributed in the interval [0,1], c<sub>1</sub>, c<sub>2</sub> is the learning factor, p i k is the optimal solution for the K-th iteration, and p g k is the global optimal so far solution.</p></sec><sec id="s3"><title>3. Optimize the Design Process</title><sec id="s3_1"><title>3.1. Data Preparation</title><p>This article has 49 sets of experimental data, some of which are shown in <xref ref-type="table" rid="table1">Table 1</xref>.</p><p>Among them, a<sub>p</sub>, v<sub>c</sub> and f are used as input variables, and the surface roughness Ra is used as the output variable to randomly divide the training set and the test set. After the 49 groups of samples were randomly shuffled, the first 40 groups of samples were used as the training set, and the last 19 groups were used as the test set. The overall algorithm flow is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p></sec><sec id="s3_2"><title>3.2. SVM Modeling</title><p>The SVM regression toolbox in Matlab is used to set it, and the input training set samples are automatically standardized by the solver to remove the influence of dimensions. The kernel function adopts the Gaussian kernel function, which automatically adjusts the super error in the optimization solver. The mean square error and coefficient of determination are used as indicators to evaluate the accuracy of the model. The modeling results are shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>The test set is input into the model for testing, and the comparison of model prediction results is shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>. It can be seen from <xref ref-type="fig" rid="fig4">Figure 4</xref> that the SVM regression model has high accuracy, its mean square error mse = 0.059, and the coefficient of determination R<sup>2</sup> = 0.908, which can be used to characterize the mapping relationship between the three elements of cutting and surface roughness.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Experimental sample data</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >NO.</th><th align="center" valign="middle" >a<sub>p</sub> (mm)</th><th align="center" valign="middle" >v<sub>c</sub> (mm/rev)</th><th align="center" valign="middle" >f (mm)</th><th align="center" valign="middle" >Ra (μm)</th></tr></thead><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0.40</td><td align="center" valign="middle" >250</td><td align="center" valign="middle" >0.125</td><td align="center" valign="middle" >2.45</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >0.25</td><td align="center" valign="middle" >350</td><td align="center" valign="middle" >0.075</td><td align="center" valign="middle" >1.09</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >0.35</td><td align="center" valign="middle" >200</td><td align="center" valign="middle" >0.050</td><td align="center" valign="middle" >0.99</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >0.20</td><td align="center" valign="middle" >200</td><td align="center" valign="middle" >0.075</td><td align="center" valign="middle" >0.90</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >0.20</td><td align="center" valign="middle" >300</td><td align="center" valign="middle" >0.050</td><td align="center" valign="middle" >0.69</td></tr></tbody></table></table-wrap><p>F i t n e s s = | 0.5 − S V M ( a p , v c , f ) | (6)</p></sec></sec><sec id="s4"><title>4. Conclusions</title><p>In the current cutting process, the process design of cutting parameters has</p><p>greater subjectivity and experience. In order to achieve the expected surface roughness of the workpiece processing, this paper uses a support vector machine (SVM) to establish a model between the three elements of cutting and the surface roughness. Using the particle swarm algorithm, taking the surface roughness as the optimization goal, through parameter analysis and optimization, the following conclusions are obtained:</p><p>1) For difficult-to-machine materials such as 304 stainless steel, Support vector machine (SVM) is used for modeling. The mapping model between cutting parameters and surface roughness has higher accuracy and smaller error, which can provide reference for parameter optimization or theoretical derivation.</p><p>2) The particle swarm algorithm PSO is used to optimize the cutting parameters, and a set of feasible optimized cutting parameters can be obtained according to the expected surface roughness value, which provides a rationale for the process personnel when designing processing parameters and saves experimental costs.</p><p>3) Compared with other intelligent modeling algorithms and optimization algorithms, SVM-PSO is more convenient, concise and efficient, and provides a new idea for process parameters optimization design.</p></sec><sec id="s5"><title>Acknowledgements</title><p>I would like to express my gratitude to all those who have helped me during the writing of this thesis. I gratefully acknowledge the help of my coworker Liu. I do appreciate his patient encouragement, and professional suggestions during my thesis writing.</p></sec><sec id="s6"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s7"><title>Cite this paper</title><p>Yang, C.W., Jiang, H. and Liu, B.L. (2020) Optimization Design of Cutting Parameters Based on the Support Vector Machine and Particle Swarm Algorithm. Open Access Library Journal, 7: e6788. https://doi.org/10.4236/oalib.1106788</p></sec></body><back><ref-list><title>References</title><ref id="scirp.103263-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Luo, Y.S., Qin, M.Y. and Li, Y.Z. (2014) Experimental Study on Residual Stress in Stainless Steel Cutting. Modern Manufacturing Engineering, No. 3, 79-81+104.</mixed-citation></ref><ref id="scirp.103263-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Zhang, G.X., Ji, W.X. and Wang, Y. (2016) Research on Optimization of CNC Machining Parameters for Green and Efficient Manufacturing. Machine Design and Research, No. 32, 127.</mixed-citation></ref><ref id="scirp.103263-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Wang, L.J. and Ding, S.F. (2019) A Particle Swarm Optimization SVM-ELM Model. Journal of Computer Science and Research, 13, 657-665.</mixed-citation></ref><ref id="scirp.103263-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Li, S., Yuan, Z.G., Wang, C., et al. (2018) Overview of Swarm Intelligence Algorithm Optimization Support Vector Machine Parameters. Journal of Intelligent Systems, 13, 70-84.</mixed-citation></ref><ref id="scirp.103263-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Kennedy, J. and Eberhart, R. (1995) Particle Swarm Optimization. Proceedings of IEEE International Conference on Neural Networks, Perth, 27 November-1 December 1995, 1942-1948. https://doi.org/10.1109/ICNN.1995.488968</mixed-citation></ref><ref id="scirp.103263-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Eberhart, R. and Kennedy, J. (1995) A New Optimizer Usingparticle Swarm Theory. Proceedings of the 6th International Symposium on Micro Machine and Human Science, Nagoya, 4-6 October 1995, 39-43.  
https://doi.org/10.1109/MHS.1995.494215</mixed-citation></ref><ref id="scirp.103263-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Zhang, Y. and Liu, Y.C. (2009) Traffic Forecasting Using Least Squares Support Vector Machines. Transportmetrica, 5, 193-213. 
https://doi.org/10.1080/18128600902823216</mixed-citation></ref><ref id="scirp.103263-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Shen, J.H. and Wang, K. (2012) Hybrid Particle Swarm Optimization Algorithm for Traveling Salesman Problem. Journal of Intelligent Systems, 7, 174-182.</mixed-citation></ref><ref id="scirp.103263-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Wang, X.B., Luo, F.J., Sang, C.Y., et al. (2017) Personalized Movie Recommendation System Based on Supportvector Machine and Improved Particle Swarm Optimization. IEICE Transactions on Information and Systems, E100-D, 285-293. 
https://doi.org/10.1587/transinf.2016EDP7054</mixed-citation></ref><ref id="scirp.103263-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Wei, J.J. (2015) Improvement and Application of Particle Swarm Optimization Algorithm. Taiyuan University of Technology, Taiyuan.</mixed-citation></ref><ref id="scirp.103263-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Li, N. (2006) Theoretical Analysis and Application Research of Particle Swarm Optimization Algorithm. Huazhong University of Science and Technology, Wuhan.</mixed-citation></ref></ref-list></back></article>