A hybrid control method and device for malicious programs based on UAV and WSN interconnection system
Through the infectious disease dynamics model and SWIPT technology, the state is divided and control variables are introduced for drones and heterogeneous wireless sensor networks, and optimal control strategies are formulated to solve the problems of energy supplementation and malware propagation of wireless sensor networks in complex scenarios. , enabling efficient energy management and malware suppression.
Patent Information
- Application Number
- CN202210194317.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-01
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Wireless sensor networks in complex scenarios face problems such as poor communication link quality, high power consumption, and complex malware propagation, which are difficult to effectively solve with existing technologies.
Based on the infectious disease dynamics model, the state of drones and heterogeneous wireless sensor networks is divided, control variables are introduced, optimal control strategies are formulated to inhibit the spread of malware, and energy replenishment efficiency is improved through SWIPT technology.
It provides theoretical guidance for wireless sensor network applications in complex scenarios, saving energy consumption, improving transmission efficiency, extending network life cycle, and effectively inhibiting the spread of malware.
Smart Images

Figure CN114584980B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless sensor networks, and in particular to a hybrid control method and device for malicious programs based on a UAV and WSN interconnection system. Background Art
[0002] Wireless sensor network (WSN) is a wireless network composed of a large number of sensor nodes. It has great value in the fields of environmental protection, national defense and military, medical health, smart grid and smart Internet of Things. It is one of the technologies to improve the quality of human life in the 21st century. Wireless sensor network has the advantages of miniaturization, low cost, good robustness and flexible deployment. It is often used in conjunction with unmanned aerial vehicles (UAVs) to monitor some complex and changeable scenes. Sensor nodes are spread to designated scenes by drones, and then form a detection network in a self-organizing manner. For heterogeneous wireless sensor networks divided by communication connectivity or energy level, there are related studies on the classification of sensor nodes through clustering algorithms. Sensor nodes have the functions of data collection and data fusion forwarding, and exchange information with drones through network links. For rechargeable wireless sensor networks, drones can also replenish energy for wireless sensor networks. However, for wireless sensor networks deployed in complex scenes such as forests, underwater, ruins and wilderness, they often face problems such as poor communication link quality and excessive power consumption. In addition, due to the limitation of scenarios, drones cannot replenish the energy of wireless sensor networks at all times. The energy problem greatly reduces the autonomy and applicability of wireless sensor networks. In addition to the energy problem, drones and wireless sensor networks also face the potential risk of malware attacks. With the development of drone technology, the network relationship between drones and wireless sensor networks has become more complicated. The complex network relationship improves the accuracy of information and enhances the spatial resolution of signals. At the same time, it also makes the spread of malware in drones and wireless sensor networks more complicated. Malware can reduce the accuracy of information and damage drones and wireless sensor networks. For example, malware can aggravate the energy loss of sensor nodes and make node energy more easily exhausted.
[0003] At present, wireless sensor networks used in complex scenarios are often heterogeneous. Heterogeneous wireless sensor networks have been widely used for their good network stability, reliability and survivability. However, the limitations of the computing power and storage capacity of sensor nodes easily lead to the spread of malware, and complex heterogeneous networks greatly increase the complexity of malware propagation. At present, most ways to suppress the spread of malware are to inject patches into drones or wireless sensor networks. The injection period and some parameters are often derived from algorithms. Technical research on the spread of malware is partly studied from the perspective of infectious disease dynamics, and the objects are mostly simple wireless sensor networks. For complex heterogeneous systems composed of drones and wireless sensor networks, existing technologies cannot solve the problem of malware propagation for the time being. Summary of the invention
[0004] In order to overcome the above-mentioned shortcomings of the prior art, the embodiments of the present application provide a hybrid control method and device for malicious programs based on a UAV and WSN interconnection system, aiming to solve at least one of the above-mentioned technical problems.
[0005] In a first aspect, the present application provides a hybrid control method for malicious programs based on a UAV and WSN interconnection system, the method comprising:
[0006] The drones are classified into different states, and the infectious disease model of the drones is constructed based on the results of the state classification.
[0007] The sensor nodes in the heterogeneous wireless sensor network are divided into states, and the infectious disease model of the heterogeneous wireless sensor network is obtained according to the state division results;
[0008] Control variables are introduced into the infectious disease model of UAV and the infectious disease model of heterogeneous wireless sensor network respectively, and the optimal control variables of UAV and the optimal control variables of heterogeneous wireless sensor network are obtained;
[0009] According to the optimal control variables of the UAV and the optimal control variables of the wireless sensor network, the optimal control strategy based on the UAV and the heterogeneous wireless sensor network is obtained.
[0010] In a second aspect, the present application further provides a hybrid control device for malicious programs based on a UAV and WSN interconnection system, the device comprising:
[0011] The UAV infectious disease model building module is used to divide the states of the UAV and build the infectious disease model of the UAV according to the results of the state division;
[0012] A heterogeneous wireless sensor network infectious disease model building module is used to divide the states of sensor nodes in the heterogeneous wireless sensor network and obtain an infectious disease model of the heterogeneous wireless sensor network based on the state division results;
[0013] A control variable introduction module is used to introduce control variables into the infectious disease model of the UAV and the infectious disease model of the heterogeneous wireless sensor network, respectively, to obtain the optimal control variables for the UAV and the optimal control variables for the heterogeneous wireless sensor network;
[0014] The optimal control strategy acquisition module is used to obtain the optimal control strategy based on the UAV and the heterogeneous wireless sensor network according to the optimal control variables of the UAV and the optimal control variables of the heterogeneous wireless sensor network.
[0015] In a third aspect, the present application also provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a hybrid control method for malicious programs based on a UAV and WSN interconnection system as described in the first aspect is implemented.
[0016] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes a hybrid control method for malicious programs based on a UAV and WSN interconnection system as described in the first aspect above.
[0017] The beneficial effects of this application include:
[0018] (1) Based on the dynamics of infectious diseases and taking into account complex heterogeneous WSNs, this application proposes a complex system consisting of UAVs and WSNs. The system considers multiple influencing factors and can provide theoretical guidance for the application of WSNs in complex scenarios such as forests, underwater, ruins, and wilderness;
[0019] (2) Based on the infectious disease dynamics model and SWIPT technology, this application proposes a refueling method for UAVs, which aims to save energy costs and improve transmission efficiency; for heterogeneous WSN nodes, a wireless pulse charging method based on pulse immunity in infectious disease dynamics is proposed, which can improve charging efficiency and extend the network life cycle of WSN. Combined with the pulse infectious disease dynamics, a differential equation about the number of UAVs and WSN nodes can be obtained, which can provide guidance for algorithm design;
[0020] (3) Based on the Pontryagin maximum principle, this application proposes an optimal control strategy for UAVs and heterogeneous WSNs, and takes into account the relevant costs, which can provide theoretical guidance for suppressing the spread of malware. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 A flow chart of a hybrid control method for malicious programs based on a UAV and WSN interconnection system provided in an embodiment of the present application;
[0023] Figure 2 The state transition diagram of the drone provided in the embodiment of the present application;
[0024] Figure 3 A state transition diagram of a heterogeneous wireless sensor network provided in an embodiment of the present application;
[0025] Figure 4 A state transition diagram of a drone after introducing control variables provided in an embodiment of the present application;
[0026] Figure 5 A state transition diagram of a heterogeneous wireless sensor network after introducing control variables provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0028] See also Figure 1 The embodiment shows a flow chart of a hybrid control method for malicious programs based on a UAV and WSN interconnection system, including:
[0029] S101. Classify the states of the drones, and build an infectious disease model for the drones based on the results of the state classification.
[0030] This application divides drones into four compartments according to their real-time status: Susceptible (S), Infected (I), Low-energy (L), and Recovered (R). Based on infectious disease dynamics and impulse differential equations, this application proposes an infectious disease model for drones and heterogeneous wireless sensor networks, where the heterogeneity in wireless sensor networks is reflected by the different communication connectivity of nodes. The infectious disease model for drones is as follows:
[0031]
[0032] Among them, T is the working cycle of the UAV, nT is the time point of UAV replenishment, β U is the malware propagation rate between drones, γ U is the power loss rate of the drone, β2 is the malware propagation rate of the wireless sensor network to the drone, and g U is the conversion rate, U represents that the parameter belongs to the UAV system, i represents the number of the heterogeneous set, η is the total number of heterogeneous sets, P U is the instantaneous SWIPT rate, nT + is the moment when the positive direction approaches nT, nT - is the moment when it tends to nT in a negative direction.
[0033] Since drones need to go out to perform tasks, they can only be resupplied at specific times, that is, using wireless energy communication (Simultaneous Wireless Information and Power Transfer, SWIPT) to inject patches and replenish energy to drones. The behavior of drones returning for resupply is artificially stipulated as a periodic behavior, and because SWIPT technology is performed in pulses and the time is very short, it can be regarded as completed instantly. At the same time, the time when drones return for resupply in each cycle is also fixed, that is, the last moment of each cycle.
[0034] See also Figure 2 The drone state transition diagram shown in the embodiment, since the drones need to be maintained at a certain number to ensure the normal operation of the detection system, this application ignores the joining rate and damage rate of the drones, which means that in reality, the drones that are about to be damaged need to be replaced in time to ensure that the drones that are working normally are maintained at a constant. When the low-energy drone is replenished through the SWIPT technology, it has a patch package inside that can be immune to the intrusion of malware, and the immune drone can send patches to nearby infected drones, that is, the infected drone will become immune at a certain conversion rate.
[0035] The drone is connected to the wireless sensor network through a communication link, so malware will also spread to the drone through the wireless sensor network. For sensor nodes with different communication connectivity, the malware propagation rate to the drone is also different. In order to simplify the model, the malware propagation rate of the wireless sensor network to the drone is an expected value.
[0036] In the system of the present application, the drone is equipped with a computer to perform some computing functions, can organize and manage the wireless sensor network to a certain extent, and can also be used as a convergence node of the wireless sensor network to transmit information. At the same time, the drone can also replenish energy and inject patches to the wireless sensor network. Although the drone does not directly constitute a detection network, the detection network composed of the wireless sensor network can only play a role when the drone exists and stabilizes at a certain number and works normally. The drone deploys the sensor nodes to the specified scene, and then the sensor nodes constitute the WSN. The wireless sensor network plays the role of data collection and data fusion forwarding. Through the communication link, the wireless sensor network can exchange information with the drone.
[0037] S102, performing state division on sensor nodes in the heterogeneous wireless sensor network, and obtaining an infectious disease model of the heterogeneous wireless sensor network according to the state division result.
[0038] According to the real-time status of sensor nodes in heterogeneous wireless sensor networks, the nodes are divided into six compartments: Susceptible (S), Infected (I), Low-energy (L), Recovered (R), Susceptible in Low-energy (LS), Infected in Low-energy (LI) and Recovered in Low-energy (LR). According to the above division results, the infectious disease model of heterogeneous wireless sensor networks is obtained as follows:
[0039]
[0040] Where T is the working cycle of the heterogeneous wireless sensor network, nT is the charging time point of the heterogeneous wireless sensor network, β1 is the malware injection rate of the drone to the heterogeneous wireless sensor network, and γ i is the power failure rate of the heterogeneous wireless sensor network nodes in the i-th set, Λ i is the joining rate of heterogeneous wireless sensor network nodes in the i-th set, μ i is the failure rate of heterogeneous wireless sensor network nodes in the ith set, C i is the pulse charging rate of the heterogeneous wireless sensor network nodes in the i-th set, P ij is the patch transmission rate of the heterogeneous wireless sensor network nodes in the jth set to the heterogeneous wireless sensor network nodes in the ith set, β ijis the malware transmission rate of the heterogeneous wireless sensor network nodes in the jth set to the wireless heterogeneous sensor network nodes in the ith set, g i is the conversion rate of heterogeneous wireless sensor network nodes in the i-th set, and θ1 is the patch injection rate of the UAV to the heterogeneous wireless sensor network.
[0041] In the heterogeneous wireless sensor network model, the heterogeneity of sensor nodes is divided according to the communication connectivity of the nodes; according to the different communication connectivity, the nodes are divided into n sets, and the nodes in each set have the same communication connectivity. Due to cost constraints, it is difficult to use drones to continuously charge heterogeneous wireless sensor networks. Therefore, this application uses wireless pulse charging to supplement the energy of heterogeneous wireless sensor networks. Similarly, pulse charging is artificially stipulated as a periodic behavior. Since the charging time is very short, pulse charging is regarded as an instantaneous completion behavior.
[0042] See also Figure 3 The heterogeneous wireless sensor network state transition diagram shown in the embodiment;
[0043] Obviously, the working cycles of drones and heterogeneous wireless sensor networks are different, that is, the replenishment time point of drones is different from the charging time point of heterogeneous wireless sensor networks, and this condition must be met for the system to operate normally. Among them, the malware injection rate and patch injection rate of drones to wireless sensor networks are both expected values, because for sensor nodes with different communication connectivity, the injection rate and patch rate are not exactly the same. In addition, the present application considers the cross-transmission between nodes with different communication connectivity, that is, the patch transmission rate and malware transmission rate of the wireless sensor network nodes in the jth set to the wireless sensor network nodes in the ith set. It should be noted that the number of sensor nodes in a wireless sensor network is difficult to keep constant, so the injection rate and failure rate of the nodes cannot be ignored, that is, it is necessary to continuously broadcast sensor nodes through drones so that the total number of sensor nodes in the wireless sensor network fluctuates within a certain range.
[0044] S103. Introduce control variables into the infectious disease model of the UAV and the infectious disease model of the heterogeneous wireless sensor network, respectively, to obtain the optimal control variables for the UAV and the optimal control variables for the wireless sensor network.
[0045] In the dynamics of infectious diseases and population prevention and control, isolation and targeted treatment are two widely used prevention and control measures. Isolation is usually used for susceptible groups or asymptomatic groups, aiming to cut off the connection with infected people and reduce the risk of potential infection; targeted treatment directly acts on the infected and contagious groups. Through strong targeted treatment, the number of infected groups can be quickly reduced, thereby stabilizing the system and reducing the risk of cross-infection.
[0046] Based on the dynamics of infectious diseases and the Pontryagin maximum principle, this application proposes an optimal control based on the above-mentioned drone and wireless sensor network model. The optimal control strategy is effective both in fixed time periods and specific time points, and its purpose is to guide the research on malware suppression algorithms.
[0047] See also Figure 4 and Figure 5 The drone state transition diagram and heterogeneous wireless sensor network state transition diagram after the control variables are introduced as shown in the embodiment;
[0048] Similar to the idea of population prevention and control, this application also adopts isolation and targeted treatment (immunity) measures in drones and wireless sensor networks, that is, drones and wireless sensor network nodes that are in a susceptible state are gradually isolated, and a special compartment is established; drones and wireless sensor networks that are already infected are targeted for immunization to turn them into an immune state with patches.
[0049] The drone epidemic model after introducing control variables is as follows:
[0050]
[0051] The optimal control time for the UAV is artificially set to be an integer multiple of the UAV's working cycle. To execute the optimal control strategy, a separate compartment must be established and targeted immunization must be performed. Therefore, when designing the cost function, it is necessary to consider not only the cost problem brought by the optimal control time, but also the cost of executing additional strategies on the UAV.
[0052] Based on various cost gains, the cost function of the control strategy for the UAV is:
[0053]
[0054] Among them, A1 is the cost of monitoring and isolating susceptible UAVs, A2 is the cost of monitoring and targeted immunization of infected UAVs, A3 is the cost of monitoring low-energy UAVs, and A4 is the cost of isolating compartments. U A5 is the implementation cost of isolation measures during the working cycle, A6 is the implementation cost of targeted immunization during the working cycle, A7 is the implementation cost of isolation measures at the replenishment time point, and A8 is the implementation cost of targeted immunization at the replenishment time point.
[0055] In order to obtain the optimal solution of the control strategy, this application uses auxiliary variables to construct the Hamiltonian function within the working cycle:
[0056]
[0057] Where Z i(i=1,2,...,5) are auxiliary variables. According to the Pontryagin maximum principle, the necessary conditions for achieving the optimal solution of the control strategy can be calculated. The necessary conditions for achieving the optimal solution of the control strategy within the working cycle are as follows:
[0058]
[0059] At the same time, the optimal control strategy expression can be obtained by using the optimality condition as follows:
[0060]
[0061] That is, during the working cycle, the optimal control variables for isolation control and directional immunity of drones are:
[0062]
[0063] and
[0064]
[0065] Similarly, in order to obtain the optimal solution of the control strategy, this application uses the above auxiliary variables to construct the Hamiltonian function of the replenishment time point:
[0066]
[0067] The necessary conditions for achieving the optimal solution of the replenishment time point control strategy are as follows:
[0068]
[0069] At the same time, the optimal control strategy expression can be obtained by using the optimality condition as follows:
[0070]
[0071] That is, at the replenishment time point, the optimal control variables for isolation control and targeted immunity of drones are:
[0072]
[0073] and
[0074]
[0075] The modeling of epidemic situation in heterogeneous wireless sensor networks with control is as follows:
[0076]
[0077] The optimal control time for the wireless sensor network is artificially set to be an integer multiple of the working cycle of the wireless sensor network. It should be noted that the working cycles of the drone and the wireless sensor network are different, but the time for executing the optimal control for the drone or the wireless sensor network can be the same or different. Similarly, the execution of the optimal control strategy requires the establishment of a separate compartment and targeted immunization. Therefore, when designing the cost function, it is necessary to consider not only the cost of the optimal control time, but also the cost of executing additional strategies for the wireless sensor network.
[0078] Based on various cost gains, the cost function of the control strategy for wireless sensor networks is:
[0079]
[0080] Among them, B 1i is the supervision and isolation cost of the susceptible WSN in the set with communication connectivity i, B 2i is the supervision and targeted immunization cost of infected WSNs in the set with communication connectivity i, B 3i Isolate compartments in a set of communication connectivity i U The establishment and supervision costs of B 4i is the execution cost of using isolation measures in a set with communication connectivity i during the working cycle, B 5i is the execution cost of using directed immunity in a set with communication connectivity i during the working cycle, B 6i is the execution cost of adopting isolation measures in the set with communication connectivity i at the replenishment time point, B 7i The execution cost of using directed immunity in the set of communication connectivity i for the replenishment time point.
[0081] From the above parameters, it can be seen that for wireless sensor network nodes with different communication connectivity, even if the same control strategy is adopted, the cost gain is not exactly the same. For heterogeneous wireless sensor networks, the cost function is a sum, that is, the sum of the costs of executing the control strategy on all wireless sensor network nodes divided by communication connectivity.
[0082] In order to obtain the optimal solution of the control strategy, auxiliary variables are used to construct the Hamiltonian function within the working cycle:
[0083]
[0084] Where m ji (j=1,2,...,7) are auxiliary variables. According to the Pontryagin maximum principle, the necessary conditions for achieving the optimal solution of the control strategy can be calculated. The necessary conditions for achieving the optimal solution of the control strategy within the working cycle are as follows:
[0085]
[0086] At the same time, the optimal control strategy expression can be obtained by using the optimality condition as follows:
[0087]
[0088] That is, during the working cycle, the optimal control variables for isolation control and directional immunity of wireless sensor networks are:
[0089]
[0090] and
[0091]
[0092] Similarly, in order to obtain the optimal solution for the replenishment point control strategy, this application uses the above auxiliary variables to construct the Hamiltonian function of the replenishment time point:
[0093]
[0094] The necessary conditions for achieving the optimal solution of the replenishment time point control strategy are as follows:
[0095]
[0096] At the same time, the optimal control strategy expression can be obtained by using the optimality condition as follows:
[0097]
[0098] That is, at the replenishment time point, the optimal control variables for isolation control and directional immunity of the wireless sensor network are:
[0099]
[0100] and
[0101]
[0102] For nodes with different communication connectivity, the control variables are not exactly the same, so they should be discussed separately when setting the optimal control variables. However, from the perspective of practical applications, the cost function for performing optimal control on heterogeneous wireless sensor networks is a sum.
[0103] S104: Obtain an optimal control strategy based on the UAV and the wireless sensor network according to the obtained optimal control variables of the UAV and the optimal control variables of the wireless sensor network.
[0104] Users can develop a hybrid control scheme based on UAV and WSN that meets actual needs based on the obtained optimal control variables of the UAV and the optimal control variables of the wireless sensor network, and use the control scheme as the optimal control strategy.
[0105] In one embodiment, the present application further provides a hybrid control device for malicious programs based on a UAV and WSN interconnection system, comprising:
[0106] The UAV infectious disease model building module is used to divide the states of the UAV and build the infectious disease model of the UAV according to the results of the state division;
[0107] A heterogeneous wireless sensor network infectious disease model building module is used to divide the states of sensor nodes in the wireless sensor network and obtain an infectious disease model of the heterogeneous wireless sensor network based on the state division results;
[0108] The control variable introduction module is used to introduce control variables into the infectious disease model of the UAV and the infectious disease model of the heterogeneous wireless sensor network, respectively, to obtain the optimal control variables for the UAV and the optimal control variables for the wireless sensor network;
[0109] The optimal control strategy acquisition module is used to obtain the optimal control strategy based on the UAV and the wireless sensor network according to the optimal control variables of the UAV and the optimal control variables of the wireless sensor network.
[0110] In one embodiment, the present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that when the processor executes the computer program, a hybrid control method for malicious programs based on a UAV and WSN interconnection system as described in any of the above embodiments is implemented.
[0111] In one embodiment, the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor executes a hybrid control method for malicious programs based on a UAV and WSN interconnection system as described in any of the above embodiments.
[0112] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions and variations of these embodiments are made without departing from the principles and spirit of the present invention, and still fall within the scope of protection of the present invention.
Claims
1. A hybrid control method for malicious programs based on UAV and WSN interconnection system, It is characterized in that include: The drones are classified into different states, and the infectious disease model of the drones is constructed based on the results of the classification of the drone states; The state classification of the drones includes: according to the real-time state of the drones, the drones are classified into four compartments: susceptible to infection, infected, low energy, and immune; The states of sensor nodes in heterogeneous wireless sensor networks are divided, and the infectious disease model of heterogeneous wireless sensor networks is obtained according to the state division results of sensor nodes; The state division of the sensor nodes in the heterogeneous wireless sensor network includes: According to the real-time status of wireless sensor nodes, the nodes are divided into seven compartments: susceptible to infection, infected, low energy, immune, low energy susceptible to infection, low energy infected and low energy immune; Control variables are introduced into the infectious disease model of UAV and the infectious disease model of heterogeneous wireless sensor network respectively, and the optimal control variables of UAV and the optimal control variables of wireless sensor network are obtained; The optimal control variables for the UAV are obtained, including: Based on the cost-benefit of gradual isolation or targeted immunization of drones, the cost function of adopting control strategies for drones is calculated; According to the cost function of the control strategy adopted for the UAV, auxiliary variables are used to construct the Hamiltonian function within the working cycle, and the necessary conditions for achieving the optimal solution of the UAV control strategy are calculated according to the Pontryagin maximum principle. According to the necessary conditions for achieving the optimal solution of the UAV control strategy, the optimal control variables of the UAV are obtained; According to the optimal control variables of the UAV and the optimal control variables of the wireless sensor network, the optimal control strategy based on the UAV and the wireless sensor network is obtained; The obtaining of the optimal control variables for the wireless sensor network includes: Based on the cost-benefit of gradual isolation or targeted immunization of heterogeneous wireless sensor networks, the cost function of taking control strategies for heterogeneous wireless sensor networks is calculated; According to the cost function of the control strategy for heterogeneous wireless sensor networks, auxiliary variables are used to construct the Hamiltonian function within the working cycle, and the necessary conditions for achieving the optimal solution of the control strategy of the heterogeneous wireless sensor network are calculated according to the Pontryagin maximum principle. Based on the necessary conditions for achieving the optimal solution of the control strategy of the heterogeneous wireless sensor network, the optimal control variables of the heterogeneous wireless sensor network are obtained.
2. A hybrid control method for malicious programs based on the UAV and WSN interconnection system as claimed in claim 1, It is characterized in that The control variables are introduced into the UAV infectious disease model and the infectious disease model of the heterogeneous wireless sensor network, respectively, including: Gradually isolate drones and wireless sensor network nodes that are susceptible to infection and set up a dedicated compartment; Targeted immunization is performed on infected drones and wireless sensor network nodes to transform them into an immune state with patches.
3. A hybrid control device for malicious programs based on UAV and WSN interconnection system, It is characterized in that include: The UAV infectious disease model building module is used to divide the states of the UAV and build the infectious disease model of the UAV according to the results of the state division; The state classification of the drones includes: according to the real-time state of the drones, the drones are classified into four compartments: susceptible to infection, infected, low energy, and immune; A heterogeneous wireless sensor network infectious disease model building module is used to divide the states of sensor nodes in the heterogeneous wireless sensor network and obtain an infectious disease model of the heterogeneous wireless sensor network based on the state division results; The state division of the sensor nodes in the heterogeneous wireless sensor network includes: According to the real-time status of wireless sensor nodes, the nodes are divided into seven compartments: susceptible to infection, infected, low energy, immune, low energy susceptible to infection, low energy infected and low energy immune; A control variable introduction module is used to introduce control variables into the infectious disease model of the UAV and the infectious disease model of the heterogeneous wireless sensor network, respectively, to obtain the optimal control variables for the UAV and the optimal control variables for the heterogeneous wireless sensor network; The optimal control variables for the UAV are obtained, including: A unit for calculating the cost function of a drone is used to calculate the cost function of a control strategy for the drone based on the cost gain of gradually isolating or directional immunizing the drone; Obtaining the optimal control variable unit of the UAV, which is used to construct the Hamiltonian function within the working cycle using auxiliary variables according to the cost function of the control strategy adopted for the UAV, and calculate the necessary conditions for achieving the optimal solution of the UAV control strategy according to the Pontryagin maximum principle, and obtain the optimal control variables of the UAV according to the necessary conditions for achieving the optimal solution of the UAV control strategy; The optimal control strategy acquisition module is used to obtain the optimal control strategy based on the UAV and the wireless sensor network according to the optimal control variables of the UAV and the optimal control variables of the heterogeneous wireless sensor network; The obtaining of the optimal control variables for the wireless sensor network includes: A wireless sensor network cost function calculation unit is used to calculate a cost function of a control strategy for a heterogeneous wireless sensor network based on a cost gain of gradually isolating or directional immunizing the heterogeneous wireless sensor network; The optimal control variable unit of the wireless sensor network is obtained, which is used to construct the Hamiltonian function within the working cycle according to the cost function of the control strategy for the heterogeneous wireless sensor network using auxiliary variables, and calculate the necessary conditions for achieving the optimal solution of the control strategy of the heterogeneous wireless sensor network according to the Pontryagin maximum principle, and obtain the optimal control variables of the heterogeneous wireless sensor network according to the necessary conditions for achieving the optimal solution of the control strategy of the heterogeneous wireless sensor network.
4. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, a hybrid control method for malicious programs based on a UAV and WSN interconnection system is implemented as described in any one of claims 1-2.
5. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the processor executes a hybrid control method for malicious programs based on a UAV and WSN interconnection system as described in any one of claims 1-2.
