An Improved Artificial Bee Colony Algorithm in LoRa Wireless Communication System for Efficient Multimedia Transmission

Video streaming communication networks will be a very important way to send multimedia information anytime and anywhere, and the construction of the network base station which transmits signals is crucial in future. However, there is a contradiction between the power consumption of LoRa nodes and the real-timeliness of mesh network. In order to solve the contradiction, this articleaimstocombinethemeshnetworkofLoRawirelesscommunicationsystemwithanimprovedartificialbeecolonyalgorithm. Specifically,anartificialbeecolonyalgorithm,whichisbasedonRBFradialbasisneuralnetworktrainedwithrandomgradient method,isdesigned.Simulationresultsshowthattheproposedalgorithmsolvesthecontradictionbetweenpowerconsumptionand real-timelinesseffectively.Whenusingthisimprovednetworksystemstructuretosendmultimediainformation,itshowsobvious superiorityintermsofthehighefficiencyandreal-timelinessofmultimediatransmission.


Introduction
With the development of wireless communication network technology, the advantages of intelligent productions of wireless communication are widely accepted, such as low cost and good scalability [1][2][3].These productions have been paid more and more attention by the society [4,5].Moreover, the transmission of multimedia information is getting larger and more global.Video streaming and other high-capacity media transmission technologies require better wireless networks architecture [5,6].
The LoRa technology solves the problem of long distance and low power consumption successfully.Compared to other wireless transmission technologies, LoRa has the advantages of longer transmission distance and lower consumption [5][6][7].However, the existing wireless transmission technology cannot meet the real-time monitoring effect of wireless network under the conditions of low power consumption and long distance.In the existing methods, there is a mesh network architecture that minimizes the number of devices, which greatly reduces the cost of base station establishment [8,9].At the same time, it is very convenient to deploy the equipment [10][11][12].The mesh network architecture is very stable, and it is not affected by a single node.When a near node fails or is disturbed, the packet will be transferred automatically to the alternate path for transmission.Moreover, it has flexible structure and advantages in terms of overloading and communication load balancing [13][14][15].This kind of mesh network reduces the interference of the adjacent user wireless network when transmitting data, and its efficiency of information transmission has been improved greatly.
To a certain extent, the mesh network reduces the power consumption and achieves the coverage of a larger area, but it cannot completely solve the contradiction between the power consumption and real time of LoRa wireless network [16][17][18][19].Some additional interference or space extension may result in loss of signal transmission capability.We consider adopting the basic artificial swarm algorithm.There is still a problem that the wireless network layout may be optimized correspondingly [20,21], but the effect of optimization is not obvious enough and it converges slowly.When looking for the optimal solution in space, there may be a deviation.Moreover, the traditional method in the algorithm will affect the convergence speed of the optimal solution greatly.Therefore, this 2 International Journal of Digital Multimedia Broadcasting existing method cannot deal with the contradiction between power consumption and real time [11,16,22], which is an obstacle to the multimedia information transmission.To fill this gap, the paper proposes an improved algorithm to solve the problem.
The contributions of this paper are listed as follows: an artificial bee colony algorithm based on RBF radical basis neural network (RBFABC) is designed to resolve this problem, and this algorithm can solve the contradiction between power consumption and real-timeliness [14,17,23].Furthermore, this design not only improves the traditional way of selecting and updating the honey sources in basic artificial swarm optimization algorithm, but also enables the algorithm to converge towards the optimal solution.Moreover, the convergence speed of the proposed algorithm is much higher.The improved algorithm not only ensures the real-time performance of wireless network [14,16,24], but also reduces the power consumption of wireless network.In brief, the improved algorithm overcomes technical obstacles in the field of multimedia wireless network, and it has great significance to the development of wireless transmission technology.
The rest of this paper is organized as follows: Section 2 introduces the basic artificial swarm algorithm.Section 3 presents the system model.Section 4 proposes the RBFABC algorithm.Section 5 performs simulations to verify the effectiveness of the proposed algorithm.Section 6 concludes this paper.

Basic Artificial Swarm Algorithm
As everyone knows, bees have special behavioral patterns for finding honey sources [17,18].In general, the process of searching for honey sources is divided into three parts: looking for the honey sources; updating the honey sources; selecting the best honey sources [14,25,26].The algorithm flow is shown in Algorithm 1.
In this algorithm, the leader bees have a memory function, which can save the information of the honey sources.Moreover, the leader bees share the honey sources information with orientation bees.According to their dance of the leader bees, the orientation bees determine which direction to go.The observation bees are responsible for searching nectar around the hive, and the leader bees search for honey sources [27,28].We define some variables to represent them [16,17,23].Firstly, a series of original honey sources are initialized randomly. = ( 1 ,  2 ,  3 , . . .,   ) represents  honey sources [18,19,25].The position of the -th honey source is   = [ 1 ,  2 ,  3 , . . .,   ] ( = 1, 2, 3, . . ., ), which are potential solutions to the problem [26,27].Then the fitness of honey sources are evaluated by the following formula: where   represents the target function value of -th solutions.After that, the location of  honey sources updates in a certain way.The process is described as follows.
Init   , ,  = 1 input initial population set the total number  while (iter < = maxcycle) apply the greedy selection process end if memorize the best position so far  =  + 1 until C = maximum cycle number end while output the optimal solution end Algorithm 1: The program diagram of the artificial swarm optimization algorithm.
If the honey sources are better, we will select the better one instead of the old one; otherwise keep the old one.If all the leader bees finished searching, the honey sources information will be transmitted to the observation bees [4,13].Then the observation bees choose leader bees according to the fitness value [28,29], and the selection probability is described as follows: where   represents the location of honey sources,   represents the nearby location of   ,   represents the random number within (-1, 1),   represents the selective probability, and   represents the fitness of honey sources.If the searching process is over, the honey sources information will be transmitted to the leader bees.Then the leader bees choose a direction according to fitness of honey sources.If this honey source is not replaced after finite loops, it will be abandoned.
Finally the leader bees will look for the new honey sources.

System Model
In order to achieve the effect of algorithm optimization, we analyze the parameters of network architecture and establish the mathematical model of wireless network.As shown in Figure 1.Beyond that, this paper combines the central function with the improved algorithm.In wireless mesh networks, a small amount of wireless devices can be required to cover a large range [8,11,15].In other words, it is very convenient to create a mathematical model of wireless network [16][17][18].The correlation signal transmission capability function of network nodes created is described as follows.

Hub nodes Base nodes
The signal coverage range of nodes are related to the performance of the node ( 1 ), the location of deployment ( 2 ), the signal coverage ( 3 ), the band width ( m4 ), and the anti-interference capability ( 5 ).The above factors have different effects on the signal coverage capability of nodes, and  is used to reflect the degree of influence of factors [7].Under ideal conditions, the relationship between the transmitting power consumption and propagation distance of nodes is described as follows: where  represents transmission power,  represents coverage range,  represents transmission frequency,  represents initial effective distance, and  represents effective radiofrequency factor [7,16,18].In order to balance the relationship between power consumption and real time, the mathematical model is established as follows: where   represents the signal coverage capability after quantization,   represents the signal coverage capability of nodes, and   represents the maximum ability of nodes signal coverage.

RBFABC Algorithm
Although the artificial bee colony algorithm works well, there is still a problem of slow convergence rate in solving the problem of nodes optimization.At the same time, the choice of roulette in the original algorithm may make the algorithm fall into the local optimum.Therefore, in each iteration, there will be an error with the newly generated solution due to each local optimum.Because of the limitation of adaptive value, the speed of the algorithm convergence is affected.The gradient method, which is in the RBF radial basis neural network algorithm, is used to deal with the updating factors [10,21,25,26].Thus we improve the updating factors of honey sources by the RBF.Firstly, within a specified range, a series of original nodes locations are initialized randomly. = ( 1 ,  2 ,  3 , . . .,   ) represents  honey sources.The position of the -th honey source is described as follows.
This is a potential solution to the optimization process [9,11].The degree of honey source is estimated by the instantaneous error function [24][25][26][27], as follows: where () represents the weighted value of the impact factors,   () represents the center of the radial basis function, and   () represents variance [27,28].
When the instantaneous error is less than the specified error, the current honey sources are selected as the target honey sources.Moreover, the formula of searching for honey sources is described as follows.

𝑦
During the updating process [22,23,26], ( + 1),   ( + 1), and   ( + 1) will be updated according to the network correction equation.If these honey sources are not replaced, the position will be reserved.Then the leader bees continue to search for new honey sources.Finally, the new honey sources will be searched as a substitute of position by the improved updating formula.This process is shown in Algorithm 2.
The general steps of the RBFABC algorithm are as follows: initializing a series of original nodes location; searching for the position of some new nodes around the initialized nodes; calculating the instantaneous error value of the position of the new nodes; selecting the better nodes [6,7,27]   error values; judging whether there are points which need to be abandoned, and if so, these nodes are converted to the alternate nodes; searching for new nodes which are based on the formula [27,28,30]; storing the location of optimal nodes so far; evaluating whether the location of nodes meet the stopping condition of optimization, and if so, outputting the most appropriate node, otherwise going back to the second step [29,30].

Simulation Results
Under LoRa wireless communication system, the contradiction of power consumption and real time is well solved, which is of great significance to the development of wireless networks.When using the improved algorithm to optimize wireless communication network, the effect of real time can be optimized to the best.Moreover, the number of nodes is the least.On the one hand, the LoRa wireless network can achieve good communication in a certain area, and, on the other hand, it can meet the requirements of real time and lower power consumption [8,20,23].In order to show the effect of wireless network nodes optimized by the improved artificial colony algorithm, we select different scene areas to test the two kinds of algorithm.Under the same conditions of external influence, we keep the initial parameters of two kinds of algorithm the same in each scenario.Furthermore, the scene with an area of 100\300\500\700\1000\1500 square meters is tested and the power consumption is not limited.In these different areas, the distribution of nodes will have a very intuitive simulation effect, as shown in Table 1.
From Table 1, the improved algorithm is very efficient.Moreover, the proposed algorithm can use fewer nodes to cover the same area.Above all, the improved algorithm distributes the nodes more evenly in the same space.In a certain area, the distribution of nodes corresponding to the two kinds of algorithm is shown in Figure 2.
Figure 2 shows that, under different areas, the improved algorithm uses fewer nodes.At the same time, the real-time effect of the improved algorithm is better.In general, the improved algorithm obviously has fewer iterations, higher updating speed, and higher convergence speed.What is more, the wireless network realizes the full coverage of the network with fewer nodes by the improved algorithm.Not only that, we also find more advantages of the improved algorithm after deeper analysis of the power consumption.In different scenes, the power consumption of different number of nodes is shown in Figure 3.
Figure 3 shows that the RBFABC algorithm is obviously lower than the ABC algorithm in terms of power consumption, which shows the superiority of the improved algorithm in wireless network.In most cases, as the area of the scene increases, both the power consumption and the number of nodes also increase.However, we draw a conclusion from Figure 3 that as the number of nodes increases, the power consumption is controlled to a lower level by the improved algorithm.In summary, the RBFABC algorithm solves the contradiction between power consumption and number of nodes better in wireless network.
Correspondingly, to show the superiority of the improved algorithm, a great deal of experiments are done to test the power consumption.For the convenience of data comparison, we still take the scenario area of 100\300\500\700\1000\1500 square meters to test.In the case of certain power, the optimized spatial nodes distribution is shown in Figure 4.
It can be concluded from Figure 4 that, under the same power, the RBFABC algorithm is obviously better than the ABC algorithm in terms of the distribution of the wireless network.Beyond that, fewer nodes cover a wider range by the RBFABC algorithm.To show the superiority of the improved algorithm, we do more tests.Under the same power consumption, the specific number of nodes is shown in Table 2.
According to the data in Table 2, we can draw a conclusion that the RBFABC algorithm is better than the ABC algorithm in terms of optimization effect.Beyond that, the relationship between iteration number and optimal solution is shown in Figure 5.  Figure 5 shows that the improved algorithm can find the optimal solution faster.Therefore, the improved algorithm has more advantages for the optimization of wireless network nodes.Moreover, in a certain area, when the number of network nodes is the same and other factors are consistent, the multimedia data transmission speed which is optimized by two kinds of algorithms is shown in Table 3.
From Table 3, the improved algorithm is obviously superior to the original algorithm in terms of transmission speed.As the number of nodes increases, the data transmission speed becomes faster and faster.In order to display the data visually, the comparison of speed trend is shown in Figure 6.
It is seen from Figure 6 that the RBFABC algorithm is faster than the ABC algorithm in terms of multimedia data transmission speed.Moreover, as the number of network nodes increases, the data transmission speed gap is bigger and bigger.In general, the RBFABC algorithm is better than the ABC algorithm.Above all, the real-time performance of the system is greatly improved.In addition to these, we do a lot deeper analysis.Under the same number of network nodes, the comparison of network delay is shown in Figure 7.
It can be concluded from Figure 7 that, under the same network nodes, the RBFABC algorithm is obviously lower than the ABC algorithm in terms of network delay.On the other hand, we compare the maximum data load of the single data transmission in the network system.The analysis results of two kinds of algorithm are shown in Figure 8.It is seen from Figure 8 that the RBFABC algorithm is significantly higher than the ABC algorithm in terms of the maximum data load of the single data interaction.In general, the improved algorithm has more advantages.

Conclusion
In this paper, to resolve the contradiction of base station establishment in LoRa wireless communication systems   between the power consumption of LoRa nodes and realtimeliness of the mesh network, we have proposed a novel RBFABC algorithm which achieves better performance by embedding RBF radial basis neural network training with random gradient method.Extensive simulations have been conducted and the results have shown the obvious superiority of the RBFABC algorithm in terms of the high efficiency and real-timeliness of multimedia transmission.

Figure 2 :
Figure 2: Node distribution under the same area.

Figure 3 :
Figure 3: Power consumption diagram corresponding to different nodes.

Figure 4 :
Figure 4: Node distribution under the same power.

Figure 5 :
Figure 5: The relationship between iteration number and optimal solution.
nodes are, the more the effect is obvious.

Table 1 :
Optimization results of the two algorithms in certain scenarios.

Table 2 :
Optimization results under a certain power.

Table 3 :
Comparison of multimedia data transfer speed.