<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Lin on Medium]]></title>
        <description><![CDATA[Stories by Lin on Medium]]></description>
        <link>https://medium.com/@ubermensch_lin?source=rss-9c8a90edafd3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*POYeH7f73edht4-x.</url>
            <title>Stories by Lin on Medium</title>
            <link>https://medium.com/@ubermensch_lin?source=rss-9c8a90edafd3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 05:06:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ubermensch_lin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Review of Internet of Things (IoT) Networks in Edge Computing Based on Deep Reinforcement…]]></title>
            <link>https://medium.com/@ubermensch_lin/a-review-of-internet-of-things-iot-networks-in-edge-computing-based-on-deep-reinforcement-61906972a260?source=rss-9c8a90edafd3------2</link>
            <guid isPermaLink="false">https://medium.com/p/61906972a260</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[edge-computing]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Lin]]></dc:creator>
            <pubDate>Tue, 05 May 2020 04:20:39 GMT</pubDate>
            <atom:updated>2020-05-05T04:20:39.515Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>A Review of Internet of Things (IoT) Networks in Edge Computing Based on Deep Reinforcement Learning Approach</strong></h3><p>by<br><em>Nyan Lin Htet (6222040351)<br>Menghorng Bun (6222040096)<br>Ming Hsien Chuang (6214552743)</em></p><h3><strong>Introduction</strong></h3><p>More and more omnipresent and efficient smart devices including sensors and smartphones facilitate the accelerated growth of IoT applications that deliver more data and need more data aggregation and processing capacities. Many IoT systems are actually based on server-client architecture with intelligent front-end apps and the back-end cloud, and they collect information from IoT sensors and transfer them to the cloud via network access points. The long-distance dynamic connectivity between the cloud and billions of end devices, however, contribute to two important problems: latency and capacity.</p><p>In this study, we reviewed a deep reinforcement learning (DRL) based solution for IoT network clustering from (Liu et al., 2019)¹. Data from IoT devices in the clusters are obtained from the edge server of each cluster. Their approach typically has two major characteristics.</p><ol><li>They assume that any IoT system regularly produces fixed size data. In order to optimize the networking efficiency of the IoT networks and computing output of edge servers, their approach divides IoT into clusters.</li><li>They also believe that objects travel throughout the IoT network region, causing the neighbor IoT devices to render more data than normal data. Their implementation adjusts the network cluster configurations to these data collected shifts.</li></ol><p>In order to accomplish this aim, they suggest a Deep Q-Learning Network (DQN) model. Preliminary studies indicate that their approach is feasible. Experimental findings reveal that in contrast to the approach by statically partitioned clusters, the DQN paradigm increases the system performance substantially in IoT network with dynamic objects.</p><h3>System Model</h3><p>Figure 1 shows the state-of-the-art system model of IoT network and parallel edge servers. The IoT network has homogeneous end nodes that are randomly deployed in the area. Belongs to one subnetwork, the several mesh subnetwork and each end node is composed by these end nodes. In this situation, the network is partitioned into clusters, which is for collecting data from IoT devices to multiple edge servers, and each mesh network has an edge server to make parallel computing for the data collected from the IoT network. However, it is supposed that regular report data of fixed size is sent periodically by each IoT node to the edge server of its cluster. A dynamic object is moving in the area of the IoT network and triggers the nearby IoT nodes to produce sensing data of a larger size. For example, the context could be a truck moving around in a warehouse and the IoT network is to monitor the work process of the truck. When a truck appears in the detection range of an IoT end node, the IoT device starts to capture the image of the truck and send image data to the edge server of its cluster. So to keep the data load in subnetworks balanced, the network clustering should depend on the layout of the network and the position of the moving object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*vn4uKy8tVapXTUYh" /><figcaption><strong>Figure 1</strong> The state-of-the-art system model of IoT network and parallel edge servers</figcaption></figure><h4><strong>Deep Reinforcement Learning Solution</strong></h4><p>For this section, using Deep Q-Learning Network (DQN) as the DRL model for dynamic network clustering. They assumed that the agent performing the DQN model resides in a server, and all the required information about the IoT network is collected to the DQN model.</p><p><strong>Actions:</strong></p><p>Suppose a set of edge servers P = {<em>p₁…;pᵢ…;pₙ</em>} that reside in the network with integer i ∈[1; n], initially, a cluster-core <em>Oᵢ</em> is set at the position of edge server <em>pᵢ</em>. During the initialization phase, to partition the IoT network into clusters, the first, selecting the IoT network node that is closest to the cluster-core <em>Oᵢ</em> as the cluster head hi. Subsequently, the network can be partitioned into clusters C = {<em>c₁;…cᵢ;…cₙ</em>} with i ∈[1; n] based on the cluster heads with Voronoi diagram method as shown in Figure 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*s2P4ce38-xQeJnco" /><figcaption><strong>Figure 2 </strong>The closest cluster-core for some point is in the cluster-core of the Voronoi cell</figcaption></figure><p>As shown in Figure 2, virtual position cluster cores are defined to control the partition of clusters. The partition is divided by the vertical bisectors of every two cluster-cores in the form of a Voronoi diagram. Each cluster will have a cluster-core, and every end node chooses the closest cluster-core. In every Voronoi cell, the closest cluster-core for some points is the cluster-core of the Voronoi cell.</p><p>To control the partition of the clusters is actually to move the cluster-cores. The action state space A is the movements of all the cluster-cores. For example, in the implementation, each cluster-core has ve movement actions: Up, Down, Left, Right, Stay. At each time step, the DQN model selects and performs a movement action on a cluster-core. An example of moving cluster-cores and partitioning clusters is shown in Figure 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*aSFswVeHZ0QyIkAJxv_mxg.png" /><figcaption><strong>Figure 3 </strong>The IoT network is partitioned into clusters based on the movement of cluster-cores</figcaption></figure><p><strong>Reward:</strong></p><p>The action reward is satisfactory to the requirements on both IoT network and edge computing aspects. By defining the two requirements that the network clustering should fulfill as follows:</p><ul><li>IoT Network: the number of communication hops to transfer all the data in cluster cᵢ to server <em>pᵢ</em> as <em>bᵢ</em>. B = {<em>b₁,…bᵢ,…bₙ</em>} with i ∈ [1, n]. As assumed the IoT network uses multi-hop communication, means higher communication time for aggregating the same amount of data. Using the average absolute deviation value of B that is normalized in [0, 1] to quantify the requirement of the IoT network. They have:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*UwJ4Vo3cTaRiQZfqooZPVg.png" /></figure><ul><li>Edge Servers: the size of data aggregated to each server <em>pᵢ</em> as <em>dᵢ</em> , and D = {<em>d₁,…dᵢ,…dₙ</em>} with i ∈ [1, n]. Using the average absolute deviation value of D that is normalized in [0, 1] to quantify this load balancing requirement. They have:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*6UrPEXRKq51cUJ3U8qvw7A.png" /></figure><p>By combining the two indexes together as the reward of the DQN model(<em>rₜ</em>= W × H). The objective of the DQN model is to find a policy to maximize the expected cumulative discounted rewards R<em>ₜ</em> as follows, where β ∈ [0, 1] is the discount factor for reward <em>rₜ </em>and k is the number of time steps from t:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*dUMr60dD2YLK8Cgbfkb2MA.png" /></figure><p><strong>Q-Value:</strong></p><p>The input state space S includes: (i) the neighbor connectivity matrix of the network; (ii) the cluster ID of each node; (iii) the size of data that is produced in each node. DQN aims to find the optimal policy to maximize <em>Rₜ</em>. The Q-value is defined as the reward <em>Rₜ</em> when taking action in state <em>Sₜ</em>. Using Q-value to measure the quality of a certain action in a given state. The DQN model uses a fully connected DNN with a weight set θ to approximate the Q-function. After taking the action, the agent receives the reward <em>rₜ </em>and the IoT network moves to a new state <em>Sₜ₊₁.</em></p><p><em>aₜ= arg max Q(Sₜ,a)</em></p><p>The improved policy with Q-values is based on the following update equation, where Q 0 is the improved policy and α ∈ [0, 1] is the learning rate.</p><p><em>Q₀(Sₜ,a)=Q(Sₜ,a)+</em>α<em>[rₜ+ max Q(Sₜ₊₁,a)-Q(Sₜ,a)]</em></p><p>The DQN model updates its DNN at each iteration to minimize the loss function L.</p><p><em>L=[rₜ+ βmax Q(Sₜ+1,a)-Q(Sₜ₊₁,aₜ)]</em></p><h4><strong>DRL with LSTM Predictor Model</strong></h4><p>To implement the DQN model in a real-world environment, a simulator is to be built to train the DQN model. As the real-world environment has dynamic factors, it is important to make the simulator also dynamic with a similar pattern as the real-world environment. So an LSTM predictor is used to track and learn the key dynamic factor of the real-world environment and generate more synthetic data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/0*05VdxkAcPH6wvxmd" /><figcaption><strong>Figure 4 </strong>DRL with LSTM Predictor Model (at Training Phase)</figcaption></figure><p>Figure 4 shows the system model, namely DRL with LSTM Predictor Model at training phase. In the simulator, an LSTM predictor is built to mimic the dynamic behavior of the real-world environment. Together with the static factors in the simulator, the simulator can form a very similar environment to the real-world one. Also, the data will not be restricted to the limited real-world data, the LSTM predictor can generate synthetic data at run time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/0*qGep_cHXnpuWuagR" /><figcaption><strong>Figure 5 </strong>DRL with LSTM Predictor Model (Decision Making Phase)</figcaption></figure><p>The LSTM predictor is not only used at the training phase to generate more training data, but also used at the decision making phase to give the DQN model some dynamic prediction about the coming environment state, as shown in Figure 5. As DQN uses experience replay in order to eliminate adjacent data correlation.</p><h4><strong>Research Scenario</strong></h4><p>They presented a scenario based on an application from ProDrive Technologies B.V. as in Figure 6.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/0*KUPGm5PgJUFo_QY9" /><figcaption><strong>Figure 6 </strong>Vehicle movement scenario in the warehouse</figcaption></figure><p>There are three pick up points and two gates, and gate 2 is an emergence gate. Usually, gate 2 will not be used, and trucks will pass through gate 1 to load and unload around the pick up points. They simplified the problem by using the discrete grid points to present the continuous positions in the real-world. The whole testing area is a<em> 0.025m x 0.025m</em> grid square and uses the center of the grid as real-world data. An example tracing is like Figure 7.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*YvbSfDQhKxHwHp9J" /><figcaption><strong>Figure 7 </strong>Discretize the movement trace of a dynamic vehicle</figcaption></figure><p>In the assumption, they predicted 9 states of the truck movement: Up, Down, Right, Left, Up-Right, Down-Right, Up-Left, Down-Left, Stay by using machine learning technologies.</p><h3><strong>Experimental Results</strong></h3><h4><strong>Implementing Multiplicative Weighted Voronoi Clustering and D3QN on the DQN-based Dynamic Clustering</strong></h4><p>The parameters of DQN are shown in Table 1. The dynamic events in the simulator move from one point to another point recurrently. The outcome of Dynamic Clustering With Weighted Voronoi and D3QN will be used as a benchmark for the experiments. Dynamic Clustering with Target Value is adding moving direction of the dynamic direction to the original model. The directions are up, down, right, down, up-right, down-right, down-right and down left.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/0*scdr0vk63RBbBoj0" /><figcaption><strong>Table 1 </strong>The Parameters of experiments</figcaption></figure><p>Figure 8 shows the convergence reward of each experiment. Dynamic Clustering and Dynamic Clustering with Target Position converged at around Reward Value 0.6. If using Weighted Voronoi, reward value will converge to 0.67 but the time for convergence is slow. When applying the Weighted Voronoi method and D3QN, reward value will converge to 0.72. The improvement is higher than simple directions 20%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/0*kORCQ8F5AUDtXM2c" /><figcaption><strong>Figure 8 </strong>Implementing Multiplicative Weighted Voronoi Clustering and D3QN on the DQN based Dynamic Clustering</figcaption></figure><p>The different amount of real-world dataset will be applied ,and the result shows in Figure 8. The average rewards received from the environment of the models trained with 50% data and 100% data are similar to the convergence result, in which the model trained with 50% data performs worse than the model trained with 100% data. While the model trained with 25% data performs considerably worse with the test data set than the training data set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/0*sWkv3luGx_Gmj-oY" /><figcaption><strong>Figure 9 </strong>Training and Testing D3QN and Multiplicative Weighted Voronoi Clustering Solution with the Real-world Truck Trace</figcaption></figure><p>For a limited dataset, it is very important to expand the dataset to tackle overtting. This is the reason why synthetic data is needed to tackle the overtting problem caused by limited training data. DQN is a model-based algorithm and uses Experience Replay. The motivation to use Experience Replay is to tackle correlated data and non-stationary distribution problems. As each input and output pair of the sample from Q-learning are correlated to the previous and upcoming input and output pair, this correlation increases the variance of the updated Q-value.</p><p>However, with the cancelation of the correlation of continuous data, it is hard for the DQN to trace the moving pattern from the previous network states. So an external event position predictor is needed to get the moving direction and put it to the DQN as an input so that the DQN can learn the dynamic factor of the environment.</p><p>This proves the necessity to use synthetic data to train the DQN model. So the following experiments are carried out to use LSTM to generate synthetic data at the training phase. To give more direction on the dynamic factors for the DQN model, the LSTM model will also be used at the decision making phase to help the DQN make decisions.</p><h4><strong>LSTM Key-factor Prediction Model</strong></h4><p>The input of the LSTM model is 60 positions of the truck in 60 previous time-steps, in which each position consists of 2 values for x coordinate and y coordinate (say x coordinate parallels to Gate 1 while y coordinate is vertical to Gate 1). The output of the LSTM model is the prediction behavior of the truck in the next time-step. The training data is 50% of all the data log. And the remaining will be used as a test set.</p><p>Finally, the LSTM model trained with 25%, 50%, and 100% training data achieves 0.692, 0.748 and 0.813 accuracy respectively in the test set. With training dataset getting less, the accuracy of the LSTM model can achieve is decreasing as well. Also, the accuracies the LSTM model can achieve are not very high because, to arrive at certain places, as illustrated in Figure 10, there are multiple routes for the truck.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/0*TXApGqyMzWeWSYuh" /><figcaption><strong>Figure 10 </strong>Explanation on why LSTM does not have good accuracy</figcaption></figure><p>With this method, only the rst 60 position data are real-world data, and all the remaining are the synthetic data (which is the orange part in Figure 10). The rst 60 position data can be taken from any time, so the LSTM can start from a random time-step. Here they gave a sample of LSTM-based synthetic data.</p><p>As shown in Figure 11a the blue line shows the real-world truck trace, the truck was going from pickup point C to pick up point A. Then the data synthesis (the red line) starts. The LSTM predictor is able to guide the truck going on the trackway and to pickup point A and back. Then the synthetic data chooses to go to pickup point A as Figure 10b shows. Only the initial part of the data for these is real-world data, then all the rest is synthetic. Thus from very limited data, the LSTM model can continuously generate unlimited amounts of synthetic data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/0*6T3ZkCFQaVzRcarL" /><figcaption><strong>Figure 11</strong> An example of LSTM trace prediction</figcaption></figure><h4><strong>DRL with LSTM Predictor Model Experiment</strong></h4><p><strong>Training Phase</strong></p><p>The parameters of the IoT network and DQN model are also set as shown in Table. Figure 12 shows the convergence results of 4 cluster models with different sizes of training data. As shown in Table 2, Dynamic Clustering is the benchmark DRL model, which does not take the behavior of the moving target as part of the input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/0*w99S8ZlytnLpw_ht" /><figcaption><strong>Table 2</strong> Different clustering models</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/0*dsGc4R-PtH3n05rk" /><figcaption><strong>Figure 12</strong> Convergence results with different sizes of training data set</figcaption></figure><p>Dynamic Clustering with Synthetic Data and Target Behavior Prediction and Target Behavior Prediction solution converges more slowly, after around 3000 epochs, they can converge and achieve average reward around 0.7 for all these 3 experiments. They achieved better system performance by introducing LSTM based synthetic data. And the improvement in the training phase is around 17%.</p><p>Correspondingly, LSTM models for 100%, 50% and 25% training dataset DQN experiments also use 100%, 50% and 25% dataset as training datasets. These models respectively achieve 0.813, 0.748 and 0.692 of accuracy on the test set.</p><p><strong>Decision Making Phase</strong></p><p>Three experiments are carried out respectively on the same test set with Dynamic Clustering with Synthetic Data and Target Behavior Prediction model trained with 100% training data, and the result is shown in Figure 13. They all achieve slightly less than 0.7 reward on average similar to convergence reward at the training phase. Fully-combined Probability Action Selection method achieves around 0.69 reward on average. Dynamic Clustering Benchmark does not have the behavior prediction of the moving target as an input so it will not use Fully-combined Probability Action Selection method, and it will act as a benchmark for the other two models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/0*ELMgdFxJLzWJ3RR0" /><figcaption><strong>Figure 13 </strong>Using probability-based models to connect LSTM predictor and DRL model.</figcaption></figure><p>As shown in Figure 14, Dynamic Clustering with Synthetic Data and Target Behavior Prediction, which uses both LSTM generate synthetic data and LSTM behavior prediction as an input gets the best performance in the test dataset. Also, the performance does not drop much as the training data set gets less. The average award is around 0.68 for all these experiments with different size training dataset.</p><p>Dynamic Clustering with Target Behavior Prediction has worse performance than Dynamic Clustering with Synthetic Data and Target Behavior Prediction and is prone to the size of training dataset. With 100%, 50% and 25% training dataset, this method achieves respectively 0.62, 0.60 and 0.57 average reward.</p><p>Dynamic Clustering provides the worst performance in these three dynamic clustering methods, and it is very prone to the size of the training dataset. With 100%, 50% and 25% training dataset, this method achieves respectively 0.59, 0.57 and 0.51 average reward. Nonetheless, all of these dynamic clustering methods greatly outperform static clustering, which can only an average 0.12 award.</p><p>In these experiments, it shows that the method Dynamic Clustering with Synthetic Data and Target Behavior Prediction they proposed can improve the system performance by 15% to 30% based on the size of the training dataset.</p><p>With less data, the method they proposed can achieve more improvement on the original model. And it can be predicted that with even less data, the method Dynamic Clustering with Synthetic Data and Target Behavior Prediction they proposed will drop slightly but will greatly outperform the model without synthetic data and target behavior prediction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/0*x_1Tr6qU8028XeoZ" /><figcaption><strong>Figure 14</strong> 4 cluster model test results with different size of training data set</figcaption></figure><h3>Conclusion</h3><p>In this article, we reviewed the IoT networks on deep reinforcement learning with the experimental results and methods from (Liu et al., 2019)¹. They developed a DRL model for a dynamic IoT network clustering scheme and provided a Dynamic Clustering with Synthetic Data and Target Behavior Prediction method in order to reduce the error between the simulation and the real-world system.</p><p>There were two different methodologies that they applied such as (1) Multiplicatively Weighted Voronoi Clustering Approach as the clustering method because of the good clustering granularity in which D3QN was utilized to enhance the efficiency and effectiveness of DRL performance, and (2) a Model-based DRL Model with LSTM Predictor to port the DRL model to the real-world system from the simulation. They also tried to work out how to minimize the error between those two, particularly:</p><ul><li>Using LSTM predictor to generate synthetic data in the training phase</li><li>Using dynamic factor prediction to support DRL model in the decision making phase</li></ul><p>According to the experimental results which are mentioned above, their proposed DQN model can achieve better performance than the static benchmark approach (The detailed source code can be found in their GitHub² from the link in the reference). Their study has shown that DRL techniques can be implemented for IoT networks and edge computing. Therefore, their methods and design could be built and deployed as an alternative to the current network clustering solutions for IoT.</p><h3>References</h3><p>[1] Liu, Q., Cheng, L., Ozcelebi, T., Murphy, J., &amp; Lukkien, J. (2019). Deep Reinforcement Learning for IoT Network Dynamic Clustering in Edge Computing. 2019 19th IEEE/ACM International Symposium on Cluster, Cloud and Grid Computing (CCGRID) , 600–603. <a href="https://doi.org/10.1109/CCGRID.2019.00077">https://doi.org/10.1109/CCGRID.2019.00077</a></p><p>[2] <a href="https://github.com/XiaTiancong/Deep-Reinforcement-Learning-for-IoT-Network-Dynamic-Clustering-in-Edge-Computing/tree/master/clustering">https://github.com/XiaTiancong/Deep-Reinforcement-Learning-for-IoT-Network-Dynamic-Clustering-in-Edge-Computing/tree/master/clustering</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61906972a260" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>