<?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">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2022.104008</article-id><article-id pub-id-type="publisher-id">JCC-116871</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Multi-Stage Image Compression-Decompression System Using PCA/IPCA to Enhance Wireless Transmission Security
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ali</surname><given-names>A. Ibrahim</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>Thura</surname><given-names>Ali Khalaf</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>Bashar</surname><given-names>Mudhafar Ahmed</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Al-Nahrain University, Baghdad, Iraq</addr-line></aff><pub-date pub-type="epub"><day>06</day><month>04</month><year>2022</year></pub-date><volume>10</volume><issue>04</issue><fpage>87</fpage><lpage>96</lpage><history><date date-type="received"><day>8,</day>	<month>March</month>	<year>2022</year></date><date date-type="rev-recd"><day>25,</day>	<month>April</month>	<year>2022</year>	</date><date date-type="accepted"><day>28,</day>	<month>April</month>	<year>2022</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>
 
 
  The goal of this paper is to propose a fast and secure multi-stage image compression-decompression system by using a wireless network between two Personal Computers (PCs). In this paper, the Principal Component Analysis (PCA) technique is used for multi-stage image compression and Inverse Principal Component Analysis (IPCA) for multi-stage image decompression. The first step of the proposed system is to select the input image, the second step is to perform PCA up to 9 times on the input image, this compression, and after multi-stage compression process then the third step begins by transforming across wireless Ad hoc Network (WANET) to the second computing device, forth step start with multi-stage decompression process up 9 times. The proposed system for different images is transferred over the wireless network using Transmission Control Protocol/Internet Protocol (TCP/IP), which is programmed using the network role property of the MATLAB program. The proposed system implements 25 different images correctly (100%). The main contribution of this paper is that we are dealing with the black image at the end of the compressed process ad start with a black image at the start of the decompressed process of this proposed system. In this work, the compressed and uncompressed images are compared with each other in their size and transmission time. This system can be very useful in networks because they provide a high level of protection to the transmitted data from hackers because they cannot guess how much the image has been compressed or what kind of information the image represents.
 
</p></abstract><kwd-group><kwd>Principle Component Analysis</kwd><kwd> Inverse Principle Component Analysis</kwd><kwd> Wireless Ad Hoc Network</kwd><kwd> Transmission Control Protocol/Internet Protocol</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>With the fast development of the Internet, the use of high-resolution image transmission is increasing due to vast volumes of digital images being shared by people over the Internet every day. High-resolution images need greater bits for storage and transmission because the information amount in the digital image is very large, and it occupies a large number of resources. For these reasons, efficient transmission of digital images has become a major challenge in the field of information technology. Thus, it is important to use an appropriate method to compress images in order to store and transmit them efficiently. Taking into consideration, the bandwidth consumption over multimedia communication, having an effective compression coding technique is necessary to enable the effective and rapid transmission of image data over the network [<xref ref-type="bibr" rid="scirp.116871-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.116871-ref2">2</xref>].</p><p>In the image processing, there is one particular field by which the size of data can be reduced called Image Compression. These techniques use various mathematical models in order to minimize irrelevance and redundancy of image data so that it can be stored or transmitted efficiently. Image compression can be lossy or lossless. Lossless compression is generally preferred for backup storage e.g. medical picturing. Whereas Lossy methods are specially used for natural images e.g. personal digital images. One of the lossy compression techniques is PCA. PCA is the best image compression technique among many of the possible approaches used to reduce image file size at the expense of its perceptual quality because other lossy compression standards such as JPEG offer a tradeoff between image quality and file size, while in lossless compression techniques such as run-length encoding, no information reduction takes place, but the image file size may remain large [<xref ref-type="bibr" rid="scirp.116871-ref3">3</xref>].</p><p>In the field of communication between devices, networking is the most important area which is responsible for a source to destination transmission of data. The network is established using air as a transmission medium and there is no physical path between two nodes of the network such networks are called Wireless Networks. Wireless Adhoc Networks are networks in which nodes can communicate with others by wireless transmissions without the help of a centralized coordinator. WANET is becoming very popular to connect with each other within a particular region for the various applications. As this field as growing up very rapidly, it comes with new issues such as securing the network that has been one of the major concerns in today’s world [<xref ref-type="bibr" rid="scirp.116871-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.116871-ref5">5</xref>].</p><p>In this research, we have proposed a system that compresses/decompresses digital images multiple times by using the PCA/IPCA technique. The compressed images are transferred over the wireless network using Transmission Control Protocol/Internet Protocol (TCP/IP), which is programmed using the network role property of MATLAB program. For more security, PCA/IPCA method could be used also to secure image transmission against attackers over a wireless network because they can’t know what type of information the compressed image is holding. This project deal with 25 digital images samples from Air Freight dataset because the samples do have significant lighting, specular effects, so they are more realistic than some other image samples might be. This work is expanded on the previous work, which was presented by [<xref ref-type="bibr" rid="scirp.116871-ref5">5</xref>].</p><p>This paper consists of 4 sections, the first is the introduction, the second section is proposed methodology, while the third section is experimental results, and the last is conclusions.</p></sec><sec id="s2"><title>2. Proposed Methodology: Main Steps</title><p>The proposed methodology for the multi-stage PCA/IPCA method is discussed in the following sections includes a brief discussion of the quality measurements and the proposed wireless network connection and transmission process.</p><sec id="s2_1"><title>2.1. Principle Component Analysis</title><p>Principle Component Analysis is a multivariate statistical method used to describe variability among observed, PCA depending on the idea of correlated variables in terms of a potentially lower number of unobserved variables called factors. In other words, it is possible, for example, that variations in three or four observed variables mainly reflect the variations in fewer unobserved variables. Factor analysis searches for such joint variations in response to unobserved latent variables. The observed variables are modeled as linear combinations of the potential factors, plus “error” terms. The information gained about the interdependencies between observed variables can be used later to reduce the set of variables in a dataset [<xref ref-type="bibr" rid="scirp.116871-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.116871-ref7">7</xref>].</p><p>The goals of PCA are included in the following [<xref ref-type="bibr" rid="scirp.116871-ref8">8</xref>]:</p><p>1) Extract the information (features) from the datasets.</p><p>2) Compress the size of the dataset by keeping only the related information.</p><p>3) Decompress the compressed dataset without losing information.</p><p>4) Analyze the structure of the observations and the variables.</p></sec><sec id="s2_2"><title>2.2. One-Stage Image Compression/Decompression [<xref ref-type="bibr" rid="scirp.116871-ref6">6</xref>]</title><p>In the beginning, one-stage image compression/decompression must be expounded as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>(a) that illustrates PCA algorithm steps as one-stage image Compression/Decompression process in detail. This process is the foundation of the multi-stage image Compression/Decompression process that will be explained later on in this section.</p><p>Principal Component Analysis (PCA) is used as a dimension reduction method by reducing the number of dimension with low errors. Firstly, the RGB image from Air Freight dataset must be converted to greyscale image named as (I) and used in MATLAB code, the grey image format is row &#215; column matrix. By using Air Freight images, the dimension of the images is 160 &#215; 120. The grey image matrix is centred by computing the mean of the image matrix,</p><p>m e a n I ( 120 ∗ 160 ) = m e a n ( I )</p><p>Then subtracting each pixel gray value from the mean gray value:</p><p>s u b I = I − m e a n I</p><p>After that, the covariance matrix of the subtracted matrix must be computed in order to determine the eigenvectors (principal components) of the covariance matrix and collect them into the projection matrix.</p><p>cov = c o v a r i a n c e ( s u b I )</p><p>[ V D ] = e i g ( c o v )</p><p>V t r a n s ( 160 ∗ 160 ) = t r a n s p o s e ( V )</p><p>Each of those eigenvectors is associated with an eigenvalue, which is the size or dimension of the corresponding eigenvector. The eigenvalues are arranged in descending order and the eigenvectors are chosen corresponding to the largest eigenvalues. Finally, the final matrix is constructed from the selected eigenvectors:</p><p>s u b I t r a n s = t r a n s p o s e ( s u b I )</p><p>f i n a l m a t r i x ( 120 ∗ 160 ) = V t r a n s ∗ s u b I t r a n s</p><p>The final image matrix is decompressed by performing Inverse Principal Components Analysis (IPCA) on the compressed image as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>(b). The IPCA algorithm starts by computing the inverse of eigenvectors matrix, then multiply the inverse matrix by compressed image matrix [<xref ref-type="bibr" rid="scirp.116871-ref6">6</xref>].</p><p>I f i n a l m a t r i x t r a n s = i n v ( V t r a n s ) ∗ f i n a l m a t r i x</p><p>The decompressed image matrix is constructed by adding the mean of the image matrix to the transpose of the multiplication [<xref ref-type="bibr" rid="scirp.116871-ref6">6</xref>].</p><p>I f i n a l m a t r i x ( 160 ∗ 120 ) = t r a n s p o s e ( I f i n a l m a t r i x t r a n s ) + m e a n I</p></sec><sec id="s2_3"><title>2.3. Proposal Multi-Stage Image Compression/Decompression System</title><p>A new algorithm is proposed to compress the image at different stages, it’s a sequence of image compression stages. With each stage, there is a new different compressed image that has a different size. These sequences of image compression stages are corresponding to the decreasing of image sizes. The process is called the forward multi-stage image compression. The reverse direction or the backward multi-stage image compression contains a sequence of image decompression stages, which are corresponding to the increasing of image sizes. The images are compressed N times as shown in <xref ref-type="fig" rid="fig2">Figure 2</xref> below, reaching to constant image size, Where N equals 9 and the final image size is equalled to 1 kB. N equals 9 because this is the last compression stage where image size cannot change anymore and settle on 1 kB and this was determined experimentally and it is the last compression step.</p></sec><sec id="s2_4"><title>2.4. Wireless Network</title><p>The proposed network system consists of two PCs, network’s PCs transfer data by using Transmission Control Protocol/Internet Protocol (TCP/IP), which is programmed using the network role property of MATLAB program. TCP requires only the destination’s IP address and port number for the data to be transferred to that destination. Client and server TCP sockets are programmed using the network role property on the TCP/IP interface that supports a single remote connection. To communicate over TCP/IP interface, TCP/IP object must be created before transmission with remote host’s IP address and port number. The Port number must be a positive integer between 1 and 65,535. The typical workflow for TCP/IP server and TCP/IP client sessions is shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>(a) and <xref ref-type="fig" rid="fig3">Figure 3</xref>(b) respectively. In the server session, after a server socket is opened, the server will wait until an incoming connection is established. In the client session, the received data have to be reshaped to their original data size. The time out for the writing and reading operations can be determined in both sessions. IP’s of network’s PCs have to be set up statically or dynamically before</p><p>network transmission takes place. Static IP addressing is applied to the proposal network because it provides more reliability than a dynamic IP address. The network transfers compressed and input images into one line. First, PC1 sends the chosen image to PC2 (which is either a compressed image or input uncompressed image). Then PC2 receive either compressed image or input uncompressed image, then decompresses the compressed image. In this network, Acer AOD257 CORE i3 notebook and Toshiba Portege M780 CORE i5 computers were used for image transmission [<xref ref-type="bibr" rid="scirp.116871-ref6">6</xref>].</p></sec></sec><sec id="s3"><title>3. Experimental Results</title><p>The system is tested by using 25 image samples from Air Freight dataset. These images must be converted to grayscale in order to employ a multi-stage compression process. In this system, PC1 is the server that writes the image to the client’s buffer and PC2 is the client that reads the image from the server. In PC1 (the server), the gray scale input image is gone through 9-stage of compression as shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>. In each stage, the compression index is assigned to each compressed image matrix to help PC2 identify the stage of compression. Using GUI, the user can choose the compressed image to be sent wirelessly to PC2. PC2 (the client) will receive the compressed images along with compression indexes and preform the decompression process as shown in <xref ref-type="fig" rid="fig5">Figure 5</xref>.</p><p>The size of compressed Air Freight images is shown in <xref ref-type="table" rid="table1">Table 1</xref>. The table shows a huge decrease in the size of the images without affecting their quality as shown in <xref ref-type="fig" rid="fig2">Figure 2</xref> when they are decompressed later on in this system. The size of the decompressed images is reduced to almost less than half of the original</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Performance results for 25 samples using the proposed system before and after compression/decompression process</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Image No</th><th align="center" valign="middle" >Transmit Time</th><th align="center" valign="middle" >Receive Time</th><th align="center" valign="middle" >Total Time (before compression) (sec)</th><th align="center" valign="middle" >Transmit Time (after compression)</th><th align="center" valign="middle" >Receive Time (after compression)</th><th align="center" valign="middle" >Total Time (after compression) (sec)</th><th align="center" valign="middle" >Size before compression (kb)</th><th align="center" valign="middle" >Size after compression (bytes)</th><th align="center" valign="middle" >Size after decompression (kb)</th></tr></thead><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >2.0</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.7</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >333</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.7</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >340</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >368</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >1.8</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >338</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >348</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >6</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >319</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >7</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >351</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >1.5</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >327</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >9</td><td align="center" valign="middle" >1.4</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.5</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >348</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >349</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >11</td><td align="center" valign="middle" >1.8</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >350</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >352</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >13</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.8</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >368</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >14</td><td align="center" valign="middle" >1.8</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >30</td><td align="center" valign="middle" >344</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >15</td><td align="center" valign="middle" >1.8</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >30</td><td align="center" valign="middle" >368</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >2.0</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >30</td><td align="center" valign="middle" >345</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >17</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >2.0</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >30</td><td align="center" valign="middle" >362</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >18</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.8</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >386</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >19</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >29</td><td align="center" valign="middle" >317</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >20</td><td align="center" valign="middle" >1.8</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.7</td><td align="center" valign="middle" >27</td><td align="center" valign="middle" >324</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >21</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >27</td><td align="center" valign="middle" >314</td><td align="center" valign="middle" >11</td></tr><tr><td align="center" valign="middle" >22</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.8</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >27</td><td align="center" valign="middle" >327</td><td align="center" valign="middle" >10</td></tr><tr><td align="center" valign="middle" >23</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.8</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >27</td><td align="center" valign="middle" >381</td><td align="center" valign="middle" >10</td></tr><tr><td align="center" valign="middle" >24</td><td align="center" valign="middle" >1.5</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >27</td><td align="center" valign="middle" >365</td><td align="center" valign="middle" >10</td></tr><tr><td align="center" valign="middle" >25</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.8</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >26</td><td align="center" valign="middle" >371</td><td align="center" valign="middle" >10</td></tr></tbody></table></table-wrap><p>input image size. This means that there is information loss which is about 62% of the original size without losing the important features of the original image. The time factor is also affected by the compression. In this project, image transmits and receive time are measured during opening and closing of sockets. When comparing the total time of image transmissions before and after multi-stage compression, a decline in time is shown in <xref ref-type="table" rid="table1">Table 1</xref>. The time before multi-stage compression is almost more than two times of the time which is after multi-stage compression.</p><p>The main contribution of this paper is that we are dealing with the black image at the end of the compressed process ad start with a black image at the start of the decompressed process of this proposed system.</p></sec><sec id="s4"><title>4. Conclusion</title><p>All implementation results of the proposed system as shown in <xref ref-type="table" rid="table1">Table 1</xref> have demonstrated that multi-stage compression reduces the size of the image massively. Also, the information loss in the multi-stage decompression process has no impact on the overall important features of reconstructed images Image size reduction has an influence on image transmission across the wireless network which decreases transmission time. So, multi-stage compression contributes well to enhancing image transmission. Overall, multi-stage image compression/decompression can be used as a method to encode/decode image information in order to give more security to the data that the image holds from unauthorized users where the hackers do not know the number of iterations of compression/decompression process that was used in this proposed system.</p></sec><sec id="s5"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s6"><title>Cite this paper</title><p>Ibrahim, A.A., Khalaf, T.A. and Ahmed, B.M. (2022) Multi-Stage Image Compression-Decompression System Using PCA/IPCA to Enhance Wireless Transmission Security. Journal of Computer and Communications, 10, 87-96. https://doi.org/10.4236/jcc.2022.104008</p></sec></body><back><ref-list><title>References</title><ref id="scirp.116871-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Chen, Y.X., Huang, Z.C., Sun, H., Chen, M.Y. and Tan, H. (2016) Lossy Image Compression Using PCA and Contourlet Transform. MATEC Web of Conferences, 54, 1-5. https://doi.org/10.1051/matecconf/20165408002</mixed-citation></ref><ref id="scirp.116871-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Ng, S.C. (2017) Principal Component Analysis to Reduce Dimension on Digital Image. 8th International Conference on Advances in Information Technology, 19-22 December 2016, Macau, 113-119.</mixed-citation></ref><ref id="scirp.116871-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Hladnik, A. (2013) Image Compression and Face Recognition: Two Image Processing Applications of Principal Component Analysis. International Circular of Graphic Education and Research, No. 6, 56-60.</mixed-citation></ref><ref id="scirp.116871-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Yang, X., Wang, L., Xie, J. and Zhang, Z.L. (2018) Cross-Layer Model Design in Wireless ad Hoc Networks for the Internet of Things. PLOS ONE, 13, e0196818. https://doi.org/10.1371/journal.pone.0196818</mixed-citation></ref><ref id="scirp.116871-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Storkey amos (2000) Image Sequence Segmentation Data. http://homepages.inf.ed.ac.uk/amos/afreightdata.html</mixed-citation></ref><ref id="scirp.116871-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Ali Abdulhafidh, I., Ali Khalaf, T. and Ahmed, B.M. (2016) Design and Implementation of Iris Pattern Recognition Using Wireless Network System. Journal of Computer and Communications, 15-21. https://doi.org/10.4236/jcc.2016.47003</mixed-citation></ref><ref id="scirp.116871-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Ali Abdulhafidh, I., Al Rikabi, Z.H.A. and Ahmed, N.S. (2014) Using Hierarchical Cluster and Factor Analysis to Classify and Built a Phylogenetic Tree Species of ND1 Mitochondria. Journal of Al-Nahrain University-Science, 114-122.</mixed-citation></ref><ref id="scirp.116871-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Ali Abdulhafidh, I. (1996) Using the Factor Analysis Method to Extract the Parameters That Determine the Suitability of Powdered Milk for Human Consumption. The Scientific Journal of Tikrit University of Engineering Sciences, 71-82.</mixed-citation></ref></ref-list></back></article>