{'fraction_non_alphanumeric': 0.04745265519175187, 'fraction_numerical': 0.020836029506923773, 'mean_word_length': 4.50903041825095, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A Novel Epidemic Model for Wireless Rechargeable Sensor Network Security

With the development of wireless rechargeable sensor networks (WRSNs ), security issues of WRSNs have attracted more attention from scholars around the world. In this paper, a novel epidemic model, SILS(Susceptible, Infected, Low-energy, Susceptible), considering the removal, charging and reinfection process of WRSNs is proposed. Subsequently, the local and global stabilities of disease-free and epidemic equilibrium points are analyzed and simulated after obtaining the basic reproductive number R0. Detailedly, the simulations further reveal the unique characteristics of SILS when it tends to being stable, and the relationship between the charging rate and R0. Furthermore, the attack-defense game between malware and WRSNs is constructed and the optimal strategies of both players are obtained. Consequently, in the case of R0<1 and R0>1, the validity of the optimal strategies is verified by comparing with the non-optimal control group in the evolution of sensor nodes and accumulated cost.


Research Background
Wireless sensor networks (WSNs) have attracted researchers' attention worldwide over the last few years. WSNs consist of sensor nodes that have data storing and data transmitting capacities in the form of multi-hop or single-hop. Sensor nodes are randomly deployed in unattended areas in order to monitor the physical environment in and around their vicinity. WSNs have extremely wide applications that range from people's daily life to various manufacturing industries, and even military facilities, such as health care services, bridge monitoring, intrusion detection, and security surveillance [1]. However, WSNs suffer from various issues related to security [2] and short life cycle [3], due to the vulnerability of the network structure and battery limitations.
Wireless rechargeable sensor networks (WRSNs), as an emerging technology, lie in the breakthrough in wireless power transfer (WPT) technology. It solves the problems of limited energy storage capacity and inconvenient battery replacement, which greatly develop wireless sensor networks (WSNs). So far, WRSNs have carried out a large number of relevant studies and applied research. In recent years, studies on WRSNs mainly focus on charging scheduling and system performance optimizations [4][5][6] However, security issues in WRSNs are seldom concerned by scholars. Malware, as a self-replicating malicious code, once implanted in the networks can cause information leakage and even network paralysis. Specifically, due to the particularity of rechargeability, rechargeable sensor nodes also suffer from the Denial of Charge (DOC) attacks [7], which will cause catastrophic consequence to real-time and pre-waring application fields [8]. Thus, research on WRSNs' security is urgent and important.

Related Work
The security of data transmission links(DTLs), as an essential part of data transmission, is one of the security issues of WSNs. For example, a cloud using multi-sinks (CPSLP) scheme has been proposed to solve the problem of source location privacy [9] in DTLs. Similarly, in WRSNs, Shafie et al. [10] and Bhushan et al. [11] propose a novel efficient scheme and Energy Efficient Secured Ring Routing (E2SR2) protocols, respectively, in order to enhance the security performance of WRSNs. Besides, as the key hub of DTLs, security on a cluster head draws academic attention [12,13].
Meanwhile, intrusion detection systems (IDSs) have been recognized as the most effective means of detecting malicious attack (Blaster, SDBot, Fork bomb, etc. [14]). Specifically, Cui et al. [15] propose a mobile malware detection systems. Jaint et al. [16] and Thaile et al. [17] apply support a vector machine and nodetrust scheme in order to improve the detection efficiency. Once the malware is detected, then a mitigation mechanism, such as dismissing the affected nodes [18] or adopting diverse variants deployments [19], would be activated.
The application of epidemic dynamics to study the propagation of malware (Worms, Botnets, Rabbit, etc. [14]) in WSNs has received extensive attention and in-depth exploration in the academic. When considering the malware carrier, patch injection mechanism, and time delay, more suitable epidemic models have been proposed: SCIRS [20], SIPS [21], SEIAR [22], etc. Furthermore, Table 1 lists some relevant literature from recent years. Local and global stability in worm-free point Differential games are also widely used in WSNs as a method for studying optimal dynamic strategies. For example, by using the differential game framework, Al-Tous et al. [29] propose an efficient scheme for power control and data scheduling of energy-harvesting WSNs and Huang et al. [30] develop a virus-resistant weight adaption scheme for mitigating the spread of malware in the large-scale complex networks. Similarly, Table 2 summarizes a few related literatures. By obtaining the optimal dissemination of patches, the tradeoff between security risks and bandwidth is minimized S. Sarkar et al. [40] Multi-hop wireless networks By using the optimal routing and scheduling, the throughput of the networks is optimized However, as far as we know, the theories of epidemic dynamics and differential game that are applied in WRSNs' security are rarely studied. Therefore, this paper applies these two theories to study the security of WRSNs to provide a novel perspective of solution.

Contributions
The main goal of this paper is to introduce a novel epidemic model when considering the residual energy of sensor nodes and classify sensor nodes into five various states. Moreover, charging process and removing process are taken into account. Furthermore, the stability theory and differential game theory have both been applied in order to analyze the characteristics of the evolution of sensor nodes in various states. Our contributions are stated, as follows:

•
An epidemic model suitable for WRSNs is designed. • Based on the next-generation matrix method, the basic reproductive number R 0 of the system is obtained.Subsequently, by applying the Routh Criterion, Lyapunov function, and the other analytical methods, the local and global stabilities of the disease-free equilibrium solution and the epidemic equilibrium solution are proved and simulated. Moreover, the linear relationship between the state variables when the system tends to be stabilized, and the positive relationship between R 0 and the charging rate is disclosed in the simulation section. • Applying the Protryagin Maximum Principle, the optimal game strategy between malware and WRSNs is given. Moreover, by comparing the evolution of sensor nodes in various states and overall cost with the control group, the validity of the strategies is verified in the case of R 0 < 1 and R 0 > 1.
The rest of the paper is organized, as follows: the main characteristics of the model are present in Section 2; theorems of the local and global stability, and the optimal strategies are proved in Section 3; the simulation results are showed in Section 4; and the conclusions are presented in Section 5.

Epidemic Modeling on WRSNs
The model presented in this manuscript is global and deterministic such that sensor nodes are classified into five compartments: Susceptible (S), Infected (I), Susceptible in Low-energy (LS), Infected in Low-energy (LI), and Dysfunctional (D), as shown in Figure 1. Sensor nodes in S are vulnerable to malware; sensor nodes in I are compromised with malware and perform malicious action; sensor nodes in LS and LI state are both in dormant-like state; and, the sensor nodes in D state are completely incapacitated, owing to irreparable hardware damage. Specifically, the dormant-like state indicates the sensor nodes are forced to stop some running modules due to the low remaining energy, including data transmission. Thus, sensor nodes in LI state do not have the risk of spreading malware. Sensor nodes in S transform to I once the attached malware starts running. New infectious sensor nodes are generated with α 2 I(t)S(t) and α 2 represents the transmission coefficient. In addition to the new sensor nodes, which are governed by Λ, some of the sensor nodes in I are repaired and converted to S at rate α 1 . Owing to electricity consumption, sensor nodes in both S and I drop to low-energy at rate µ. Meanwhile, when considering rechargeable battery equipped in sensor nodes and charging sensor nodes by multiple wireless charging vehicles [41], low-energy sensor nodes rise back to their previous states, since their batteries are full of electricity again. Detailedly, in order to simplify the model, assuming that the charging rate C is a constant. The model is simplified by assuming the same mortality µ in each compartment. In the Abbreviation Section, a brief description of the parameters is shown.
As a consequence, the dynamics of the system is governed by (1)- (5): andL Moreover, N(t) = S(t) + I(t) + LS(t) + LI(t) and constrained by: As t tends to infinity, considering Then, we use the following (7)-(10) to define its boundary: and Considering the following equations: and Consequently, Ω is compact and invariant [42], and the solutions of Ω exist and are unique [43].

Computation of the Steady States and the Basic Reproductive Number R 0
Considering the limit system, we obtain: andL where The solutions of the above system are the steady states of (1)-(5). This system has two solutions: 2. The endemic steady state E * = (S * , I * , LI * ), where and Furthermore, the basic reproductive number R 0 can be obtained by the next generation matrix method [44]. Set and Thus

Dynamic Analysis
In this section, the local and global stabilities of both the disease-free point E 0 and the epidemic equilibrium point E * were fully proved. Moreover, an attack-defense game was built to analyze the confrontation between malware and WRSNs.

Local Stability Analysis
Theorem 1. The disease-free equilibrium point, E 0 , is locally asymptotically stable if R 0 < 1.
Proof. The eigenvalues of the following matrix are and The real parts of the two eigenvalues are both negative if R 0 < 1. Besides, Thus E 0 is locally asymptotically stable [45]. On the contrary, E 0 is unstable if R 0 > 1.
Proof. First of all, the truth E * exists if and only if R 0 > 1 is simple to prove.
Subsequently, the characteristic polynomial of the Jacobian matrix of the state functions where and Moreover, a simple calculus shows P 2 P 3 − P 1 P 4 > 0. Thus, if R 0 > 1, applying the Routh criterion [46], the local asymptotically stability of E * follows.

Global Stability Analysis
Theorem 3. The disease-free equilibrium point, E 0 , is globally asymptotically stable if R 0 < 1.
Proof. In this proof, the method of Lyapunov function is considered. In general, in the Lyapunov stability analysis [47], the Lyapunov function needs to be positive definite, except for the stable point, and its first derivative needs to be negative definite.
When considering the Lyapunov function V = (C + γ)I(t) + CLI(t), we obtain: In addition, dV dt = 0 if and only if R 0 = 1 and I(t) = 0. Moreover, (S, I, LI) tends to E 0 when t tends to infinity, and the maximum invariant set in {(S, I, LI) ∈ Ω : dV dt = 0} is E 0 . Thus, Theorem 3 has been proved, after considering the La-Salle Invariance Principle [48].
Proof. First of all, by referencing [49], the system is uniformly persistent. According to [50], there exists an absorbent compact. Besides, according to Theorem 2, E * is the unique equilibrium point if R 0 > 1. The second additive compound matrix of Jacobian matrix is given, as follows: where and Set P f as the directional derivative of the diagonal matrix P = diag(1, I LI , I LI ), then: Set and Supposing that (S, I, LI) is a vector in R 3 , then the norm of vector that is defined in R 3 is |(S, I, LI)| = max{|S|, |I| + |LI|}. (46) Note that the Lozinskii measure of B is given by the following expression: where According to [51], Supposing that C > µ, then g 1 < g 2 . Thus, µ(B) ≤ g 2 . Subsequently, Consequently, applying the theorem in [52], the statement is proved.

Optimal Control Strategies
According to differential game theory [53], let us impose a set of hypotheses as follows. andL where C I indicates the cost incurred by I nodes at time t, C i(t f ) indicates the terminal cost of corresponding state, and i(t f ) indicates the number of corresponding state at the terminal moment.
Besides, the terminal constraints of the co-state variables are formulated as: where i ∈ X(t).
Consequently, the optimal strategies are obtained by

Simulation
Theorem 1 to Theorem 5 have been further verified here. In Section 4.1, the stable solutions of the system (1)-(5) are obtained and proved, while the impact of charging is analyzed by observing the variation of I nodes. In Section 4.2, the optimal solutions are displayed by comparing with the groups without optimal controls. All of the simulations are based on MacOS Catalina (Intel Core i5, 8 GB, 1.8 GHz) and MATLAB 2017b.
The evolution in (S(t), I(t)) and (LS(t), LI(t)) are similar and so do (S(t), LS(t)) and (I(t), LI(t)), as depicted in Figure 2. In Figure 2a,b, the curve starts from the boundary and finally converges to (10.47, 0)((9.52, 0)). Specifically, as illustrated in Figure 2a,b, the curve in the feasible region is attracted by I = −1.0028S + 10.5(LI = −0.9979LS + 9.5). When malware only exists on LI nodes, a peak in the number of I nodes appears after a period of time. The peak decreases as the initial number of S nodes increases, and it eventually stays around at 3. At the same time, the number of I nodes always shows a downward trend, and it is cleared when t → ∞. In Figure 2c,d, the curve is attracted by LS = 1.1240S − 2.2479(LI = I), and finally converges to (10.47, 9. Figure 3. Similarly, the curve gathers together, and then finally converges to (10.47, 0, 0). In summary, a smooth transitional period exists before the system reaches equilibrium. During the period, malware is eliminated from the network gradually and the numbers of S and LS nodes maintain a steady growth. In the end, the malware is totally cleared in the WRSNs, and the numbers of S and LS nodes remain unchanged under constant charging power.

Epidemic Equilibrium Stability
Similarly, the same four combinations are applied here, as depicted in Figure 4. Suppose that the values of coefficients, except for α 2 = 0.005, remain constant, as stated in Section 4.1.1. At this time, R 0 = 2.6799 > 1. Substitute the coefficients into (19)-(21), we obtained S * = 3.91, I * = 6.57 and LI * = 5.97. Moreover, the results that are presented in Figure 5 confirm Theorem 2 and Theorem 4.
When compared with Figure 2, when R 0 > 1, the equilibrium points appear inside the region, but not the boundary. In terms of evolution trends, Figure 4a,c and Figure 4b,d are close. It is worth noting that the prerequisite for the existence of the epidemic equilibrium point is that at least one I node exists. When compared with the case R 0 < 1, at this time, the number of I(LI) nodes is no longer reduced. The curve that is shown in Figure 4a,b eventually converges to (3.91, 6.57) (3.55, 5.97). In particular, when the initial number of I(LI) nodes is less than 6.57(5.97), the number of I(LI) nodes will increase significantly after a gentle decline, as shown in Figure 4a,b. The curve that is presented in Figure 4a,b is attracted by S = −1.1330LS + 11(LS = −1.1352LI + 10), and it finally converges to the equilibrium point along it.
When compared with the case R 0 < 1, the evolution curves of (S(t), LS(t))((I(t), LI(t))) are similar at first. However, when the curves gather, they do not just show a single evolution trend, but the increase and decrease appear at the same time, as shown in Figure 4c,d. In Figure 4c,d, the curve begins from the boundary and it converges to (3.91, 3.55) (6.56, 5.97), when t → ∞. Figure 5 illustrates the limit system (15)- (17) in three-dimensional way. Similarly, Figure 4a,d are the planes into the triangular pyramid region. Similar to the case R 0 < 1, the evolution of S, I, and LI nodes has a smooth transitional period before reaching the equilibrium point. During the transitional period, when the number of S > 3.91, the trend drops to (3.91, 6.57, 5.97); when the number of S < 3.91, the trend rises to (3.91, 6.57, 5.97). In summary, in the case R 0 > 1, if malware propagates on a large scale in WRSNs, after a period of time, the numbers of I and LI nodes will decrease along a specific trajectory. Meanwhile, the numbers of S and LS nodes increase along a specific trajectory, and finally converge to (3.91, 6.57, 5.97). Conversely, when few malware exists in WRSNs, over a period of evolution, the numbers of S and LS nodes decrease along the specific trajectory, and the numbers of I and LI increase along the specific trajectory, and finally converge to (3.91, 6.57, 5.97).

Influence of the Charging Rate C
The influence of charging rate is discussed detailedly by comparing the quantity of I nodes with various C, as shown in Figure 6. Based on (55), C directly affects R 0 , thereby affecting the prevalence of malware. As C increases, the peak of the quantity of I nodes keeps growing and gradually saturates, as shown in Figure 6a. Under ten sets of C, only C = 0.05 and C = 0.15 clear the malware. After simple calculation, we find, as C increases, that R 0 grows likewise, as illustrated in Figure 6b. Specifically, R 0 = 1.000, when C = 0.207, which indicates, when t → ∞, that the malware is eliminated if C < 0.207 and prevalent if C > 0.207.   Such results reveal that, in WRSNs, in the confrontation with malware, the higher charging power, the higher peak of malware propagation. This inspires us to properly control the charging rate in order to prevent the prevalence of malware.

Evolution of State Variables
In this part, the evolution of state variables under four cases is discussed, as shown in Figure 7.
Case 1: R 0 < 1 with optimal control, as shown in Figure 7a; Case 2: R 0 < 1 without optimal control, as shown in Figure 7b; Case 3: R 0 > 1 with optimal control, as shown in Figure 7c; and, Case 4: R 0 > 1 without optimal control, as shown in Figure 7d.  The results indicate, in the consecutive attack-defense confrontation game, that the number of I nodes decays faster than that of the control groups. Therefore, the Susceptible, Infected, Low-energy, Susceptible (SILS) model under dynamic optimal controls is more conducive to the clearance of malware in WRSNs.

Overall Cost and Optimal Controls
In this part, the four cases stated above are explained further in two aspects, including accumulative costs and variation on control variables. Figure 8 illustrates the cost under the four cases. From Figure 8, it can be seen that the cost with optimal control is lower than that of the control group all of the time, which indicates the validity. Specifically, in Case 1, the cost finally reaches 81.9044; in Case 2, the cost finally reaches 98.4576; in Case 3, the cost finally reaches 162.8256; and, in Case 4, the cost finally reaches 196.9237. The cost depends on the number of I nodes based on (55). Thus, the cumulative cost is another embodiment of variation on the number of I nodes. It can be seen, even under optimal control, that the number of I nodes when R 0 > 1 is still greater than that when R 0 < 1.  Figure 9 depicts the variations of the control variables when R 0 < 1 and R 0 > 1 obtained from (57)-(60). Among them, Figure 9a shows the variation of D I A (t), Figure 9b shows the variation of D LSS (t), Figure 9c shows the variation of A SI (t), and Figure 9d shows the variation of A LI I (t).
For WRSNs, its purpose is to minimize the cost. Therefore, whether R 0 < 1 or R 0 > 1, WRSNs are sparing no effort to remove malware, as depicted in Figure 9a. However, the charging process is not always performed. After charging started, in the case of R 0 > 1, owing to the excessive growth of malware, the charging of LS nodes stops immediately, as shown in Figure 9b.
Regarding malware, its aim is to maximize the cost. Thus, in both cases, malware is being copied and propagated almost all of the time, as depicted in Figure 9c. Similarly, LI nodes do not always receive charging requests. If the sharp decline in the number of I nodes appears (i.e., t = 3 when R 0 < 1 and t = 19 when R 0 > 1), charging LI nodes will cause more malware to be removed, which is unconducive to the spread of the malware.

Conclusions
A novel model, namely SILS, has been proposed when considering the remaining energy of WRSNs in this paper. In SILS, sensor nodes are divided into five states: susceptible, infected, susceptible in low-energy, infected in low-energy, and dysfunctional. After theoretically proposing local and global stability, we further verify them by simulations. The simulation results indicate some characteristics of the SILS model: before reaching the equilibrium point (E 0 or E * ), there exists a phenomenon that the number of S(I) and LS(LI) nodes increases or decreases linearly simultaneously. Besides, the positive relationship between charging rate C and basic reproductive number R 0 is revealed, which enlightens us to adjust the charging rate C reasonably. Meanwhile, the threshold of C is obtained, which is, if C is higher than the threshold, malware will be prevalent, and below the threshold, malware will be eliminated. In addition to analyzing the stability, by constructing a game model, we further analyze the attack-defense methods of malware and WRSNs, and derive the optimal strategies for both players. At the same time, by comparing the cases R 0 > 1 and R 0 < 1, the simulation results show that the optimal controls can effectively inhibit the growth of I nodes and reduce the overall costs. This paper discusses a static, homogeneous network. However, with the continuous development of the Internet of Things industry and the integration of various terminal devices, heterogeneous network technology has become mainstream and it is one of our future research areas. At the same time, the convenience that is brought by the mobile technology has became increasingly prominent, such as mobile base stations and mobile chargers. However, the potential safety hazards that are caused by the mobile devices cannot be ignored. Moreover, with the investigation of the actual situation and the deepening of the mathematical model, various random model problems will be raised, which are also the trends in our future research.
Funding: This work was partially supported by the National Natural Science Foundation of China (No. 61403089).

Data Availability Statement:
The data presented in this study are available on request from the corresponding author. The data are no publicly available as they involve the subsequent application of patent for invention and the publication of project deliverables.

Conflicts of Interest:
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.