<?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">CWEEE</journal-id><journal-title-group><journal-title>Computational Water, Energy, and Environmental Engineering</journal-title></journal-title-group><issn pub-type="epub">2168-1562</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/cweee.2017.62014</article-id><article-id pub-id-type="publisher-id">CWEEE-75105</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Earth&amp;Environmental Sciences</subject><subject> Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  Image Processing System for Air Classification Using Linear Discriminant Analysis
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Atsunori</surname><given-names>Tayaoka</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Eriko</surname><given-names>Tayaoka</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>Tsuyoshi</surname><given-names>Hirajima</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Keiko</surname><given-names>Sasaki</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Department of Earth Resources Engineering, Kyushu University, Fukuoka, Japan</addr-line></aff><aff id="aff1"><addr-line>Department of Electronics &amp;amp; Control Engineering, Kitakyushu National College of Technology, Kitakyushu, Japan</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>atayaoka@kct.ac.jp(AT)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>08</day><month>03</month><year>2017</year></pub-date><volume>06</volume><issue>02</issue><fpage>192</fpage><lpage>204</lpage><history><date date-type="received"><day>February</day>	<month>16,</month>	<year>2017</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>March</month>	<year>28,</year>	</date><date date-type="accepted"><day>March</day>	<month>31,</month>	<year>2017</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>
 
 
  An air classifier is used in the recycling process of covered electric wire in the recycling factories, in which the covered electric wires are crushed, sieved, and classified by the air classifier, which generates wastes. In these factories, operators manually adjust the air flow rate while checking the wastes discharged from the separator outlet. However, the adjustments are basically done by trial and error, and it is difficult to do them appropriately. In this study, we tried to develop the image processing system that calculates the ratio of copper (Cu) product and polyvinyl chloride (PVC) in the wastes as a substitute for the operator’s eyes. Six colors of PVC (white, gray, green, blue, black, and red) were used in the present work. An image consists of foreground and background. An image’s regions of interest are objects (Cu particles) in its foreground. However, the particles having a color similar to the background color are buried in the background. Using the difference of two color backgrounds, we separated particles and background without dependent of background. The Otsu’ thresholding was employed to choose the threshold to maximize the degree of separation of the particles and background. The ratio of Cu to PVC pixels from mixed image was calculated by linear discriminant analysis. The error of PVC pixels resulted in zero, whereas the error of Cu pixels arose to 4.19%. Comparing the numbers of Cu and PVC pixels within the contour, the minority of the object were corrected to the majority of the object. The error of Cu pixels discriminated as PVC incorrectly became zero percent through this correction.
 
</p></abstract><kwd-group><kwd>Covered Electric Wire</kwd><kwd> Air Classification</kwd><kwd> Recycling</kwd><kwd> Image Processing</kwd><kwd> Linear Discriminant Analysis</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Over the past years, several studies have been made on recycling copper from wasted covered wire [<xref ref-type="bibr" rid="scirp.75105-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.75105-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.75105-ref3">3</xref>] . The covered electric wires are recycled in recycling factories, in which the covered electric wires are crushed, sieved, and classified by using the air classifier. This recycling process generates wastes which are disposed at some expense. However, since the wastes contain reusable copper (Cu) and polyvinyl chloride (PVC), the extraction of those valuable materials is desired. In these factories, the operator manually adjusts the control parameters of the classifier while observing the wastes discharged from the separator outlet. Normally, however, these adjustments have to be made on a trial and error basis, and hence, are very difficult to perform. Therefore, it is necessary to apply the automatic control in order to improve the performance of the classifier. In addition, there is a growing expectation of the sensor system which is the important element of control technology [<xref ref-type="bibr" rid="scirp.75105-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.75105-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.75105-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.75105-ref7">7</xref>] . Using such sensors, we have studied the improvement of the air classifier [<xref ref-type="bibr" rid="scirp.75105-ref8">8</xref>] [<xref ref-type="bibr" rid="scirp.75105-ref9">9</xref>] . USB camera can be used as a sensor in the air classifier to monitor the mixture ratio of the wastes. Moreover, it is possible to construct the system that controls the separation yield by the installation of USB camera in the air classifier. The system control can be done by transforming the airflow rate with the mixture ratio of the wastes. In this study, we tried to develop the image processing system that calculates the ratio of Cu and PVC in the wastes as a substitute for the operator’s eyes [<xref ref-type="bibr" rid="scirp.75105-ref10">10</xref>] . This image processing method can also be applied to the evaluation of discri- mination results in samples of different colors and is expected to be widely used in the recycling field.</p></sec><sec id="s2"><title>2. Experimental</title><sec id="s2_1"><title>2.1. Experimental Procedures</title><p>A schematic diagram of the experimental setup is illustrated in <xref ref-type="fig" rid="fig1">Figure 1</xref>. The experimental setup consists of a sealed inner-circulation type air classifier (Matsuoka Engineering Co. Ltd.), image capturing units with USB cameras, and an image processing unit by PC, which is used for monitoring and control [<xref ref-type="bibr" rid="scirp.75105-ref3">3</xref>] . The air classifier has a vibrating feeder and a centrifugal fan. The mixed Cu-PVC particles were supplied into the classifier by using the vibrating feeder, and the wind in the classifier was generated by the centrifugal fan. The computer sent a set frequency for determining the rotational speed of the fan to the AC servo amplifier (Yaskawa Corp. Junma). The wind generated from the centrifugal fan blew off the light particles into overflow box, and the heavy particles fell into underflow box (see <xref ref-type="fig" rid="fig1">Figure 1</xref>). The image capturing unit consists of an USB camera (Logicool Co., Ltd. HD Pro Webcam C920t), dome-like light source (Aitec System Co., Ltd. TD102x20-60W-4), and a constant-current power supply (Aitec System Co., Ltd. TPDC2-2430NCW). USB cameras were placed at the underflow and the overflow boxes, and the images of recovered particles were captured continuously. In this study, pre-processing and discrimination were investigated in order to calculate the ratio of Cu and PVC in the image automatically. The pre-processing consists of background subtraction and background removal. In pre-processing, the object (foreground) is extracted from background.</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Schematic diagram of the experimental setup</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x2.png"/></fig><p>The discrimination was carried out using linear discriminant analysis. In discrimination, the ratio of Cu and PVC in the wastes was calculated.</p></sec><sec id="s2_2"><title>2.2. Otsu’s Thresholding</title><p>An image histogram plots the number of pixels in the image (vertical axis) with a particular value (horizontal axis). Using the histogram for a specific image, we can observe the entire tonal distribution. In image processing, it is important to select an adequate threshold of gray level for extracting the foreground from their background. Image histograms can be analyzed for peaks and valleys which can be used to determine a threshold value.</p><p><xref ref-type="fig" rid="fig2">Figure 2</xref> shows image histograms for ideal and actual cases. In an ideal case (a), the histogram has a deep and sharp valley between two peaks representing object and background, respectively, so that the threshold can be chosen at the bottom of this valley. However, for most actual pictures (b), it is often difficult to detect the threshold because the valley bottom is fuzzy. Otsu’s thresholding is widely used in order to overcome this difficulty [<xref ref-type="bibr" rid="scirp.75105-ref11">11</xref>] . In this method, the distance of both groups is represented by the degree of separation. In Otsu’s method, we change the candidate threshold from one end to the other to find the best threshold where the degree of separation is maximum. In this study, Otsu’s thresholding was employed to extract the objects from the background.</p></sec><sec id="s2_3"><title>2.3. Linear Discriminant Analysis</title><p><xref ref-type="fig" rid="fig3">Figure 3</xref> shows the outline of the discrimination analysis. This figure shows an example when two groups are discriminated. <xref ref-type="fig" rid="fig3">Figure 3</xref>(a) illustrates the example of discrimination using two feature values, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x3.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x4.png" xlink:type="simple"/></inline-formula>, independently. <xref ref-type="fig" rid="fig3">Figure 3</xref>(b) shows the case of discrimination by the linear discriminant analysis (LDA) [<xref ref-type="bibr" rid="scirp.75105-ref12">12</xref>] [<xref ref-type="bibr" rid="scirp.75105-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.75105-ref14">14</xref>] [<xref ref-type="bibr" rid="scirp.75105-ref15">15</xref>] . The simplest method of discrimination is the thresholding method. If the feature value <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x5.png" xlink:type="simple"/></inline-formula> of sample is greater than or equal to some fixed constant<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x6.png" xlink:type="simple"/></inline-formula>, which is thresholding value, this method discriminates the sample to group one. On the other hand, if the feature value <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x7.png" xlink:type="simple"/></inline-formula> of sample is less than<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x8.png" xlink:type="simple"/></inline-formula>, this method discriminates the sample to group two. The example in</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Image histogram</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x9.png"/></fig><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Linear discriminant analysis</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x10.png"/></fig><p><xref ref-type="fig" rid="fig3">Figure 3</xref>(a) shows that 3 errors occur by using only feature value<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x11.png" xlink:type="simple"/></inline-formula>, while only 1 error occur if using feature value<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x12.png" xlink:type="simple"/></inline-formula>. Linear discriminant analysis is used in pattern recognition to separate two or more groups of objects. In LDA, we introduce the new variable Z which combined a feature value of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x13.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x14.png" xlink:type="simple"/></inline-formula> as the following equation:</p><disp-formula id="scirp.75105-formula501"><label>, (1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/4-2570149x15.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x16.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x17.png" xlink:type="simple"/></inline-formula> are the standard scores converted from the features <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x18.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x19.png" xlink:type="simple"/></inline-formula> to make the scores have a distribution with a mean of zero and a standard deviation of one. These coefficients are obtained by learning using the test image whose correct answer is known. In LDA, if the value of the function Z of the sample is non-negative, the sample is discriminated to group one, otherwise the sample is discriminated to group two. In <xref ref-type="fig" rid="fig3">Figure 3</xref>(b), it can be observed that LDA has no error. In this study, the LDA was used to discriminate Cu pixels and PVC pixels from a mixed image.</p></sec></sec><sec id="s3"><title>3. Results and Discussions</title><p><xref ref-type="fig" rid="fig4">Figure 4</xref> shows the weight ratio of each diameter of Cu and PVC in a raw material obtained by sieving. The image shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>(a) is a mixture of Cu and PVC particles. The six colors of PVC (i.e., white, gray, green, blue, black,</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Sample of crushed covered electric wires</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x20.png"/></fig><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Histogram of value image with two backgrounds</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x21.png"/></fig><p>and red) were used in this study. It can be observed that the black PVC particle is buried in a black background. In this way, the particles having a color similar to the background color are buried in the background. Therefore, a new method to extract the particles from the background without dependent on the color of objects is proposed in this work. Hereinafter, the method is explained in the case of the black PVC particles. Usually, an image captured by a camera is repre- sented in the RGB color space. In image processing, RGB color space is converted to HSV color space because HSV color space is well suited to the human senses. HSV color space is composed of a hue (H), saturation (S) and value (V). H has a value from 0 to 360, S has a value from 0 to 255, and V has a value from 0 to 255.</p><p><xref ref-type="fig" rid="fig5">Figure 5</xref> shows the histograms of value (V) of black PVC particles (a) with white background and (b) with black background, along with the original images. The horizontal axis represents value, and the vertical axis represents the frequency. In the white background (<xref ref-type="fig" rid="fig5">Figure 5</xref>(a)), the black PVC particles can be seen clearly. However, the black PVC particles cannot be seen clearly due to the particles colors buried in the black background (<xref ref-type="fig" rid="fig5">Figure 5</xref>(b)). It can be seen that the value distribution of object and background are completely separated in <xref ref-type="fig" rid="fig5">Figure 5</xref>(a). The value distribution of the particles was 35 - 70 and the value distribution of the white background was 130 - 160, therefore, the object pixels are easily extracted from the background. In contrast, there is only one value distribution (25 - 60) in <xref ref-type="fig" rid="fig5">Figure 5</xref>(b). This result indicates that the value distributions of the black PVC particles and the background overlapped each other, therefore, it is difficult to extract the object pixels from the background. The similar results were obtained from bright or white particles with white or bright background. Based on these results, the discrimination method of particles and background regardless of color of particles was investigated by using two different background colors.</p><p><xref ref-type="fig" rid="fig6">Figure 6</xref> shows a method of obtaining a value difference. The value image with black background is subtracted from the value image with white background to obtain a difference. While the value difference between is relatively large for the background area, the value difference is relatively small for the object area (see <xref ref-type="fig" rid="fig6">Figure 6</xref>(a) and <xref ref-type="fig" rid="fig6">Figure 6</xref>(b)). Therefore, in the value difference of the two kinds of background images, shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>(c), the difference in value of the particles and of the background is large.</p><p><xref ref-type="fig" rid="fig7">Figure 7</xref>(a) shows the image of value difference and <xref ref-type="fig" rid="fig7">Figure 7</xref>(b) shows its histogram.</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Difference between black PVC images with white and with black backgrounds in value</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x22.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> Image and histogram of value difference</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x23.png"/></fig><p>It can be observed that there are two distribution peaks, the lower distribution (0 to 16) corresponds to the objects of the image, and the upper one (60 to 75) corresponds to the background. There is pronounced gap between the value distributions for the objects and the background, therefore, it is possible to extract objects from background. The Otsu’s method was adopted to find the threshold between two value distributions, and for the image presented in <xref ref-type="fig" rid="fig7">Figure 7</xref>, the threshold was 42.</p><p>The procedure for background removal is shown in <xref ref-type="fig" rid="fig8">Figure 8</xref>. <xref ref-type="fig" rid="fig8">Figure 8</xref>(a), which is the image as presented in <xref ref-type="fig" rid="fig6">Figure 6</xref>(c), is the value difference image. <xref ref-type="fig" rid="fig8">Figure 8</xref>(b) is the result of thresholding by Otsu’s method and <xref ref-type="fig" rid="fig8">Figure 8</xref>(c) is the inverted image of <xref ref-type="fig" rid="fig8">Figure 8</xref>(b). The inverted image in <xref ref-type="fig" rid="fig8">Figure 8</xref>(c) creates a mask image for the background removal, where the object areas value are converted into one (or white), and the background areas value are converted into zero (or black). <xref ref-type="fig" rid="fig8">Figure 8</xref>(e) is the product of the original image of black PVC particles and black background (see <xref ref-type="fig" rid="fig8">Figure 8</xref>(d)) with the mask image (see <xref ref-type="fig" rid="fig8">Figure 8</xref>(c)). Through this procedure, black PVC objects are extracted from black background as shown in <xref ref-type="fig" rid="fig8">Figure 8</xref>(e).</p><p><xref ref-type="fig" rid="fig9">Figure 9</xref> shows the value histogram of the removed background image of black PVC particles shown in <xref ref-type="fig" rid="fig8">Figure 8</xref>(e).</p><p>It can be observed that the foreground and the background are well separated into two value distributions. The value distribution of background was zero and the value distribution of the black PVC objects was distributed from 23 to 69.</p><p>Subsequently to the successful of background removal, the discrimination of Cu and PVC particles for the pre-processed images was executed. First, the pixels of Cu particles were set as group one and the pixels of six-color PVC particles were set as group two. Afterwards, the learning for LDA was executed. The learning derived constant terms for Equation (1) and determined the LDA function (Z). Discrimination using the obtained LDA function resulted in large errors, 83.85% for Cu particles and 2.23% for PVC particles. In order to reduce the error, instead of using one LDA learning, the pixels of single-color PVC particles</p><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> Background removal of black PVC</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x24.png"/></fig><fig id="fig9"  position="float"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> Histogram of black PVC background removed</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x25.png"/></fig><p>were set as group two and six LDA learnings were executed, respectively.</p><p>As an example of LDA learning, <xref ref-type="fig" rid="fig1">Figure 1</xref>0 shows the LDA learning results for pre-processed images of Cu and black PVC particles. LDA learning results for Cu image and black PVC particles images are shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>0(a) and <xref ref-type="fig" rid="fig1">Figure 1</xref>0(b), respectively. The following LDA function is obtained from discrimination process:</p><disp-formula id="scirp.75105-formula502"><label>, (2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/4-2570149x26.png"  xlink:type="simple"/></disp-formula><p>where, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x27.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x28.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/4-2570149x29.png" xlink:type="simple"/></inline-formula> are the standard scores converted from the features H, S, and V to make scores have a distribution with a mean of zero and a standard deviation of one. <xref ref-type="fig" rid="fig1">Figure 1</xref>0(b) shows the pixels were discriminated as Cu correctly, and <xref ref-type="fig" rid="fig1">Figure 1</xref>0(c) shows the pixels were discriminated as PVC incorrectly. <xref ref-type="fig" rid="fig1">Figure 1</xref>0(e) shows the pixels was discriminated as PVC correctly, and <xref ref-type="fig" rid="fig1">Figure 1</xref>0(f) shows the pixels were discriminated as Cu incorrectly. The error of discriminated image was 0.782% and 0.014% for Cu and PVC particles, respectively.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>1 shows the results of LDA learning using Cu and each single-color PVC.</p><p>The color of PVC used on each LDA learning is described on the horizontal axis, and the learning error is presented on the vertical axis. The area enclosed with dashed lines corresponds to the results presented in <xref ref-type="fig" rid="fig1">Figure 1</xref>0. The error varied as the combination of features for LDA function changed. Therefore, all the combinations of the features were tested and the LDA function was selected based on the best combination whose error was minimum. The best combination was shown below the name of PVC color on horizontal axis in <xref ref-type="fig" rid="fig1">Figure 1</xref>1. The LDA function containing only feature hue (H) minimized the error for white and blue PVC particles. The combined features H and saturation (S) minimized the error for gray PVC particles, and the combination of H, S, and value (V) minimized the error for green, black, and red PVC particles. From <xref ref-type="fig" rid="fig1">Figure 1</xref>1, it can be observed that the highest error of the pixels of Cu particles (3.976%) was obtained when the pixels were incorrectly discriminated as gray PVC. The pixels of white and red PVC particles were incorrectly discriminated as Cu.</p><p>The discrimination between Cu and PVC pixels was carried out for the image</p><fig id="fig10"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> LDA learning results for Cu and black PVC</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x30.png"/></fig><fig id="fig11"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>1</label><caption><title> LDA learning results for Cu and PVC</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x31.png"/></fig><p>of mixed Cu and six-color PVC particles. The image of mixed Cu and six-color PVC particles is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>2(a). The image then pre-processed with the mask image shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>2(b). The result of pre-processed image is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>2(c) in which the image background was removed. The correct discriminated image was created for the image shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>2(c) by manually setting the correct Cu and PVC pixels using GNU image manipulation program (GIMP). The Cu pixels and PVC pixels are discriminated from the <xref ref-type="fig" rid="fig1">Figure 1</xref>2(c) by LDA method.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>3 shows the result of linear discrimination analysis. First, LDA function was derived in LDA learning to discriminate the Cu and white PVC particles. Afterwards, the LDA function was applied for the image shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>2(c). The discriminant analysis was continued by applying LDA function for the discrimination of Cu and gray PVC particles. Consecutively, the LDA functions for green, blue, black, and red PVC particles were applied on the previous pixels discriminated image in similar step as the previous discriminant analysis.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>4 shows the image resulted from each discrimination stage. The black and white pixels show that the pixel was discriminated as Cu and PVC, respectively. It can be observed that the PVC pixels incorrectly discriminated as Cu in</p><fig id="fig12"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>2</label><caption><title> Background removal of mixed PVC</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x32.png"/></fig><fig id="fig13"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>3</label><caption><title> LDA results in stages for Cu and PVC</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x33.png"/></fig><fig id="fig14"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>4</label><caption><title> LDA results in stages</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x34.png"/></fig><p>the initial stage was corrected as PVC as the stage progressed. For example, the black-white pixels enclosed with black dashed lines in <xref ref-type="fig" rid="fig1">Figure 1</xref>4(a) turned into white pixels in <xref ref-type="fig" rid="fig1">Figure 1</xref>4(b). After the last discrimination using LDA function for red PVC, the error of PVC pixels was zero, whereas the error of Cu pixels increased to 4.190%.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>5(a) shows after LDA results and <xref ref-type="fig" rid="fig1">Figure 1</xref>5(c) shows after images correction using object contours. The enlarged views of <xref ref-type="fig" rid="fig1">Figure 1</xref>5(a) and <xref ref-type="fig" rid="fig1">Figure 1</xref>5(c) are shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>5(b) and <xref ref-type="fig" rid="fig1">Figure 1</xref>5(d), respectively. The pixel errors</p><fig id="fig15"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>5</label><caption><title> LDA correction using contour</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-2570149x35.png"/></fig><p>after discriminant analysis were then corrected using contours of objects to minimize the error. As shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>5(b), most of the pixels in the object were correctly discriminated as Cu, however a few pixels were discriminated as PVC. The incorrect discrimination generated 4.2% error of Cu pixels. After the object contours correction, the incorrectly discriminated pixels were corrected to Cu as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>5(d). The correction was done by comparing the numbers of Cu and PVC pixels within the object contour. The pixels which is minority within object boundary, in this case the PVC pixels, were converted into the majority pixels within the object boundary, in this case the Cu pixels. The error of Cu pixels became zero through this object contours correction.</p></sec><sec id="s4"><title>4. Conclusion</title><p>In this study, we tried to develop the image processing system that calculates the ratio of Copper (Cu) and polyvinyl chloride (PVC) in the wastes as a substitute for the operator’s eyes. PVC consisted of six colors (white, gray, green, blue, black, and red) were used as particle model. By applying the difference of two color backgrounds, the particles and the background image could be separated without depending on the background. The Otsu’s thresholding was employed to select the threshold that maximizes the degree of particle-background separation. The ratio of Cu and PVC pixels was calculated from the mixed image by leaner discriminant analysis. The error of PVC pixels resulted in zero, whereas the error of Cu pixels increased to 4.19%. By using the contours of particles, the incorrect pixel discriminants were corrected. By comparing the numbers of Cu and PVC pixels within the particle contours, the PVC pixels, which was the minority of the object, were corrected into the Cu pixels, which was the majority of the object. The error of Cu pixels became zero through this object contours correction. Therefore, with this image processing system using linear discriminant analysis, it becomes possible to evaluate the discrimination result of air classification of copper and PVC which the operator has done so far, and it can be used for wind power control in air classification. Though discrimination between Cu and fixed six colors PVC was made in this experiment, when a new color sample appears, it can be dealt with by relearning with the sample. This image pro- cessing method can also be applied to the evaluation of discrimination results in samples of different colors, such as PET and labels, and is expected to be widely used in the recycling field.</p></sec><sec id="s5"><title>Acknowledgements</title><p>This work was supported by a Grant-in-Aid for Science Research (JSPS KAKENHI Grant No. 16K14523) from the Japan Society for the Promotion of Science (JSPS).</p></sec><sec id="s6"><title>Cite this paper</title><p>Tayaoka, A., Ta- yaoka, E., Hirajima, T. and Sasaki, K. (2017) Image Processing System for Air Classification Using Linear Discriminant Analysis. Computational Water, Energy, and Environ- mental Engineering, 6, 192-204. https://doi.org/10.4236/cweee.2017.62014</p></sec></body><back><ref-list><title>References</title><ref id="scirp.75105-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Kapur, J.N., Sahoo, P.K. and Wong, A.K.C. (1985) A New Method for Gray-Level Picture Thresholding Using the Entropy of the Histogram. Computer Vision, Graphics, and Image Processing, 29, 273-285. https://doi.org/10.1016/0734-189X(85)90125-2</mixed-citation></ref><ref id="scirp.75105-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Park, C., Subasinghe, N. and Jeon, H. (2015) Separation of Covering Plastics from Particulate Copper in Cable Wastes by Induction Electrostatic Separation. Materials Transactions, 56, 1140-1143.https://doi.org/10.2320/matertrans.M2015138</mixed-citation></ref><ref id="scirp.75105-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Tayaoka, A., Nagao, S., Hirajima, T. and Sasaki, K. (2009) Recovery of Cu and PVC from the Tailings of Covered Electric Wire Using the Air Classification. Proceedings of International Symposium on Earth Science and Technology, December 2009, 555-558.</mixed-citation></ref><ref id="scirp.75105-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Koyanaka, S. (2013) Recent Trends of Sensor Based Sorting Technology in Resources Recycling. Journal of MMIJ, 129, 615-625. https://doi.org/10.2473/journalofmmij.129.615</mixed-citation></ref><ref id="scirp.75105-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Bonifazi, G., Serranti, S., Volpe, F. and Zuco, R. (2001) Characterisation of Flotation Froth Colour and Structure by Machine Vision. Computers &amp; Geosciences, 27, 1111-1117. https://doi.org/10.1016/S0098-3004(00)00152-7</mixed-citation></ref><ref id="scirp.75105-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Ri, S., Numayama, T., Saka, M., Nanbara, K. and Kobayashi, D. (2012) Noncontact Deflection Distribution Measurement for Large-Scale Structures by Advanced Image Processing Technique. Materials Transactions, 53, 323-329. https://doi.org/10.2320/matertrans.I-M2011852</mixed-citation></ref><ref id="scirp.75105-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Supriadi, S., Fukushima, T. and Manabe, K. (2012) Real-Time Process Control System of Dieless Tube Drawing with an Image Processing Approach. Materials Transactions, 53, 862-869. https://doi.org/10.2320/matertrans.MF201118</mixed-citation></ref><ref id="scirp.75105-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Tayaoka, A., Kuwata, M., Hirajima, T. and Sasaki, K. (2010) Identification of Air Classifier Using AE Sensor. Proceedings of International Symposium on Earth Science and Technology, December 2010, 189-192.</mixed-citation></ref><ref id="scirp.75105-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Tayaoka, A., Kuwata, M., Hirajima, T. and Sasaki, K. (2011) Improvement of Control System of Air Classification Using AE Sensor. Proceedings of International Symposium on East Asian Resources Recycling Technology, November 2011, 776-779.</mixed-citation></ref><ref id="scirp.75105-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Tayaoka, A., Tayaoka, E., Hirajima, T. and Sasaki, K. (2013) Development of Image Processing System for Air Classification. Proceedings of International Symposium on East Asian Resources Recycling Technology, November 2013, 452-455.</mixed-citation></ref><ref id="scirp.75105-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Otsu, N. (1979) A Threshold Selection Method from Gray-Level Histograms. IEEE Transaction on Systems, Man, and Cybernetics, 9, 62-66. https://doi.org/10.1109/TSMC.1979.4310076</mixed-citation></ref><ref id="scirp.75105-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Baba, N., Kobayashi, K. and Shinozaki, T. (2006) Indicators for Risk Assessment of Deteriorated Reservoir Break/Washout by Applying Multivariate Analysis. Journal of the Agricultural Engineering Society, Japan, 74, 329-334.</mixed-citation></ref><ref id="scirp.75105-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Xu, Y., Yang, J. and Jin, Z. (2004) A Novel Method for Fisher Discriminant Analysis. Pattern Recognition, 37, 381-384. https://doi.org/10.1016/S0031-3203(03)00232-2</mixed-citation></ref><ref id="scirp.75105-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Novell, C.G., Marin, D.P., Amigo, J.M., Novales, J.F., Guerrero, J.E. and Varo, A.G. (2012) Grading and Color Evolution of Apples Using RGB and Hyperspectral Imaging Vision Cameras. Journal of Food Engineering, 113, 281-288. https://doi.org/10.1016/j.jfoodeng.2012.05.038</mixed-citation></ref><ref id="scirp.75105-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Tayaoka, A., Tayaoka, E., Hirajima, T. and Sasaki, K. (2016) Classification of the Waste Fluorescent Lamps Using Signal Processing and Discriminant Analysis. Journal of MMIJ, 132, 53-58. https://doi.org/10.2473/journalofmmij.132.53</mixed-citation></ref></ref-list></back></article>