<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Research on Classification Effect of PSO Optimized SVM</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Pengyu Zhou</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lei Liu</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yeguo Sun</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xing Zhao</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yihong Liu</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>Support vector machine (SVM) is a very good classification algorithm. When applying SVM, it is necessary to select the corresponding kernel function and corresponding parameters. Different choices will have a greater impact on the classification effect. In this paper, the Gaussian kernel function is selected as an example, and the corresponding parameters are penalty factor C and kernel function parameter g. The particle swarm optimization (PSO) algorithm is used to find the optimal parameters C and g. Through simulation comparison, it is found that the classification effect of the PSO optimized SVM algorithm is obviously better than that of the original SVM algorithm itself. At the same time, this paper gives some theoretical guidance for intelligent algorithm in optimizing SVM algorithm.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;SVM</kwd>
        <kwd>machine learning</kwd>
        <kwd>PSO</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Correlation algorithm</title>
    </sec>
    <sec id="sec-3">
      <title>2.1 Particle Swarm Optimization</title>
      <p>Particle swarm optimization (PSO) is a common swarm intelligence algorithm, which is designed
to imitate the foraging behavior of birds. It starts to initialize a group of particles randomly, and then
finds the optimal solution through iterative optimization to achieve the ultimate goal. Particle swarm
optimization updates speed and location using the following formula:
vid (k + 1) = ω ∗ vid (k ) + c1r1( pid (k ) − xid (k )) + c2r2 ( pgd (k ) − xid (k ))
xid (k + 1) = xid (k ) + vid (k )
（1）
（2）</p>
      <p>
        In the formula,ω is the inertia weight, c1 and c2 are learning factors, and the value range is [
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ]
generally. r1 and r2 are random numbers, and the value range is [
        <xref ref-type="bibr" rid="ref1">0, 1</xref>
        ] generally. vid (k ) is the search
speed of the i particle in the d dimensions at time k , xid (k ) is the position of the i particle in
the d dimensions at time k , pid (k ) is the optimal position of the i particle in the d dimensions at
time k , and pgd (k ) is the optimal position of the i entire particle swarm in the d dimensions at time k .
In the process of studying particle swarm optimization, generally c1 and c2 , r1 and r2 ,ω are the key
parameters to be optimized. The optimization performance of particle swarm optimization algorithm
often passes the typical single peak test functions: step and sphere functions; Classic multi peak
test functions: griewank and rastrigin functions are used for optimization performance test.
      </p>
    </sec>
    <sec id="sec-4">
      <title>2.2 Support Vector Machine Algorithm</title>
      <p>Support Vector Machine (SVM) is a binary classification model. SVM has been recognized by the
industry as the most successful and best performing algorithm in machine learning in the past decade.
It maps the feature vectors of instances to some points in space. The goal of SVM is to draw a line to
"best" distinguish the two types of points. The classification schematic diagram of SVM is shown in
Figure 1. The classification effect of SVM should achieve the minimum impact on the local
disturbance of samples and the strongest robustness of classification results.</p>
      <p>Fig 1.</p>
      <p>Schematic diagram of SVM classification</p>
      <p>When applying the SVM algorithm, the selection of kernel functions has a great impact on the
algorithm performance. Common kernel functions are:
（1）Linear kernel function
（2）Polynomial kernel function
（3）Gaussian kernel function
（4）Laplace kernel function
（5） Sigmoid kernel function</p>
      <p>κ (xi , x j ) = xiΤ x j
κ (xi , x j ) = (xiΤ x j )d
κ (xi , x j ) = exp(−
κ (xi , x j ) = exp(−
|| xi − x j ||2
|| xi − x j ||)</p>
      <p>δ
κ ( xi , x j ) = tanh( β xiΤ x j +θ )</p>
      <p>Among them, the Gaussian kernel function is the most commonly used kernel function. When the
Gaussian kernel function is selected, the setting of the penalty factor C ofSVM and the kernel function
parameter g has an important impact on the classification effect. Too large C will lead to over fitting,
too small C will lead to under fitting, too large g value will lead to too few support vectors, too small
g value will lead to more support vectors, and the number of support vectors will affect the speed of
training and prediction. The reasonable selection of C and g values can achieve better classification
efficiency and accuracy. The optimization function of particle swarm optimization algorithm can
realize the reasonable selection of parameters, so that SVM can achieve better classification effect.</p>
    </sec>
    <sec id="sec-5">
      <title>3. Optimize the effect</title>
    </sec>
    <sec id="sec-6">
      <title>3.1 SVM algorithm classification</title>
      <p>The SVM algorithm is used to classify data sets. The kernel function of the SVM algorithm in this
paper is a Gaussian kernel function. The values of parameters C and g are 1 by default. The training
set contains 100 samples, and the test set contains 30 samples. The classification effect is shown in
Figure 2.</p>
    </sec>
    <sec id="sec-7">
      <title>3.2 PSO optimized SVM algorithm classification</title>
      <p>The PSO optimized SVM algorithm is used to classify the dataset. The selected kernel function is
also a Gaussian kernel function. The PSO algorithm is used to find the values of the parameters C and
g of the optimal SVM algorithm, and then the optimized SVM algorithm is used to classify the dataset.
The classification effect is shown in Figure 3. It can be seen from Figure 2 and Figure 3 that the
classification effect of the SVM algorithm optimized by the PSO algorithm is significantly improved
compared with the original SVM algorithm, which shows that the optimization effect of the PSO
algorithm can be well applied to the classification research of the SVM algorithm.
Fig 2. SVM classification</p>
      <p>Fig 3. PSO optimizes SVM classification effect</p>
    </sec>
    <sec id="sec-8">
      <title>4. Conclusion</title>
      <p>SVM is a very excellent classification algorithm, which has been widely used and improved by
many scholars and researchers can achieve good results. This paper combines the characteristics of
SVM algorithm classification, takes the selection of Gaussian kernel function as an example,
combines PSO algorithm to find the optimal parameters C and g of SVM algorithm, and then carries
out simulation classification on the dataset. The simulation results show that the classification effect
of the improved SVM algorithm using PSO is significantly higher than that of the original SVM
algorithm. Later, relevant research will continue to be carried out to optimize the SVM algorithm
through different intelligent algorithms to achieve better classification results.</p>
    </sec>
    <sec id="sec-9">
      <title>5. Acknowledgments</title>
    </sec>
    <sec id="sec-10">
      <title>6. References</title>
      <p>This study received support from the Huainan Normal University Scientific Research Project
(Grant no. 2022XJZD030), and the Key Research and Development Plan Project Foundation of
Huainan (Grant no. 2021A2412), the University Natural Science Foundation of Anhui Province
(Grant no. KJ2021A0970).
[9] Fan J, Xu X Y, Zhou S D et al.(2022)Prediction of natural gas hydrate formation conditions based
on PSO-SVM.Natural Gas Chemical Industry,47:1-6.
[10] Wang Y S，Guo R，Liu R Z et al.(2022)Optimum design of double layer shaped charge structure
based on PSO and SVM.Journal of Weapon Equipment Engineering,8:244-249.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Li</surname>
            <given-names>Z</given-names>
            Z
          </string-name>
          ,
          <string-name>
            <surname>Feng</surname>
            <given-names>Y</given-names>
          </string-name>
          ,Lin
          <string-name>
            <surname>Z S</surname>
          </string-name>
          et al.(
          <year>2022</year>
          )
          <article-title>Face color recognition based on SVM model optimized by improved PSO algorithm</article-title>
          .
          <source>Computer Simulation</source>
          ,
          <volume>4</volume>
          :
          <fpage>241</fpage>
          -
          <lpage>247</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Ma</surname>
            <given-names>L L</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gao</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shen Z</surname>
          </string-name>
          J et al.(
          <year>2022</year>
          )
          <article-title>Optical fiber sensor network data recognition system based on PSO-SVM</article-title>
          .
          <source>LASER&amp;INFRARED</source>
          ,
          <volume>5</volume>
          :
          <fpage>734</fpage>
          -
          <lpage>739</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Su</surname>
            <given-names>X J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liu</surname>
            <given-names>X Q.</given-names>
          </string-name>
          (
          <year>2022</year>
          )
          <article-title>Road extraction based on SAR polarization characteristics and SVM</article-title>
          .
          <source>MICROELECTRONICS&amp;COMPUTER</source>
          ,8:
          <fpage>47</fpage>
          -
          <lpage>53</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Pan</surname>
            <given-names>L P.</given-names>
          </string-name>
          (
          <year>2022</year>
          )
          <article-title>Research on Classification and Recommendation of English Item Bank Based on SVM</article-title>
          .
          <source>Automation Technology and Application</source>
          ,
          <volume>8</volume>
          :
          <fpage>140</fpage>
          -
          <lpage>142</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>SUN P S</surname>
          </string-name>
          , CHEN T G, CHENG C et al.(
          <year>2022</year>
          )
          <article-title>Research on Fault Diagnosis of Photovoltaic Array Based on SOA-SVM Model</article-title>
          .
          <source>Journal of Power Supply</source>
          ,
          <volume>6</volume>
          :
          <fpage>85</fpage>
          -
          <lpage>91</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Kang</surname>
            <given-names>J Y</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            <given-names>S X</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            <given-names>Q P</given-names>
          </string-name>
          et al.(
          <year>2022</year>
          )
          <article-title>Fault Diagnosis Method of Transformer Based on ANOVA and BO-SVM</article-title>
          .
          <source>High Voltage Engineering</source>
          ,
          <volume>9</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>16</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Zuo</surname>
            <given-names>X Q</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xiong</surname>
            <given-names>Z</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nie</surname>
            <given-names>L</given-names>
          </string-name>
          et al.(
          <year>2022</year>
          )
          <article-title>Study of centrifugal pump fault prediction method based on PSO optimization LS-SVM</article-title>
          .
          <source>Electronic Measurement Technology</source>
          ,
          <volume>3</volume>
          :
          <fpage>51</fpage>
          -
          <lpage>56</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Tang</surname>
            <given-names>Y</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dai</surname>
            <given-names>Q</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yang</surname>
            <given-names>M Y</given-names>
          </string-name>
          et al.(
          <year>2022</year>
          )
          <article-title>Improved Sparrow Algorithm to Optimize SVM Outlier Detection</article-title>
          .Computer Engineering &amp; Science,
          <volume>15</volume>
          :
          <fpage>98</fpage>
          -
          <lpage>107</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>