Self-adaptive intelligent contract method and application of unmanned aerial vehicle network

The UAV network topology is dynamically optimized through the adaptive smart contract method, which solves the problem that the static topology cannot cope with node failures or attacks, achieves rapid adjustment and maximum coverage of the UAV network, and improves the robustness of the network. and reliability.

CN118828535AActive Publication Date: 2024-10-22NANJING UNIV OF AERONAUTICS & ASTRONAUTICS +1

Patent Information

Application Number
CN202410861046.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-22
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

When a node fails or is attacked, the static topology of the UAV network cannot be flexibly adjusted, causing problems in collaborative work and failing to meet the dynamic needs of the battlefield environment.

Method used

Adopt an adaptive smart contract method to continuously monitor the global node table through strong consensus nodes, calculate the optimal location of the target node, and use individual and group historical optimal data to dynamically optimize the drone network topology to ensure maximum coverage and communication efficiency. .

Benefits of technology

Quickly adjust the UAV network topology when the number of nodes decreases to ensure collaborative work and maximum coverage, improving the robustness and reliability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828535A_ABST
    Figure CN118828535A_ABST
Patent Text Reader

Abstract

The invention discloses a self-adaptive smart contract method and application of an unmanned aerial vehicle network, and the method comprises the steps: continuously monitoring a global node table, and judging whether the number of unmanned aerial vehicle nodes is reduced or not; if the number of the unmanned aerial vehicle nodes is reduced, obtaining current node information; obtaining individual historical optimal data and group historical optimal data of the target node and the target learning node; the strong consensus node calculates the optimal position of the target node based on the current node information, the individual historical optimal data of the target node and the target learning node and the group historical optimal data; and sending the scheduling instruction to the target node. The unmanned aerial vehicle network topology structure can be rapidly adjusted and optimized when the number of the nodes is reduced, cooperative work of the unmanned aerial vehicle network is ensured, and the maximum coverage rate of the monitoring area is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of drone control technology, and in particular to an adaptive smart contract method and application for drone networks. Background Art

[0002] UAV clusters are prone to security problems during mission execution, such as attackers physically damaging UAV nodes to cause them to malfunction, enemies gaining control of UAV nodes by interfering with communications, and UAV nodes themselves malfunctioning, which can cause changes in the UAV network topology. As a result, the current topology may not be able to support the entire UAV cluster to continue to collaborate to complete the mission.

[0003] In a real battlefield environment, drone networks are easily targeted by malicious attacks. Attackers may cause drone nodes to malfunction by physically destroying them, or gain control of drone nodes by interfering with communications. At this point, the collaborative work of drone networks will inevitably be problematic. However, the static topology used in traditional drone networks is not flexible enough to cope with such threats and meet the needs of subsequent battlefield environments. Therefore, in order to protect the overall security of drone networks, it is crucial to study a strategy for dynamically optimizing the topology of drone networks. Summary of the invention

[0004] The purpose of this application is to provide an adaptive smart contract method and application for drone networks, so as to solve the technical problem that the drone network in the prior art adopts a static topology structure that is not flexible and when a drone node fails, the current topology structure cannot support the entire drone cluster to continue to collaborate to complete the task.

[0005] To achieve the above objectives, the first aspect of the present application provides an adaptive smart contract method for a drone network, comprising:

[0006] The drone node continuously monitors the global node table and determines whether the number of drone nodes decreases. The global node table includes information of all drone nodes in the drone network.

[0007] If the number of drone nodes decreases, the strong consensus node obtains the current node information, which is the drone node with the highest credibility in the drone network. The current node information includes the current position and speed of all drone nodes in the drone network.

[0008] The strong consensus node obtains individual historical optimal data and group historical optimal data of the target node and the target learning node, wherein the individual historical optimal data includes the individual optimal position and individual optimal coverage of the node when the node has the highest coverage of the sub-monitoring area, and the group historical optimal data includes the group optimal position and group optimal coverage of the node when the drone network has the highest coverage of the total monitoring area;

[0009] The strong consensus node calculates the optimal position of the target node based on the current node information, the individual historical optimal data of the target node and the target learning node, and the group historical optimal data;

[0010] The strong consensus node sends a scheduling instruction to the target node based on the optimal position of the target node.

[0011] In one or more embodiments, the step of calculating the optimal position of the target node by the strong consensus node based on the current node information, the individual historical optimal data of the target node and the target learning node, and the group historical optimal data includes:

[0012] The strong consensus node calculates the current fitness of all drone nodes based on the current node information and the fitness function;

[0013] The strong consensus node calculates the historical optimal fitness of the target node and the target learning node based on the individual optimal coverage of the target node and the target learning node and the fitness function;

[0014] The strong consensus node obtains the optimal position of the target node based on the current node information of the target node, the current fitness of all drone nodes, the historical optimal fitness of the target node and the target learning node, the individual optimal position of the target node and the group optimal position;

[0015] The fitness function is a function in which the fitness of the node is positively correlated with the individual coverage rate.

[0016] In one or more embodiments, the step of calculating the current fitness of all drone nodes by the strong consensus node based on the current node information and the fitness function includes:

[0017] The strong consensus node calculates the current individual coverage of all drone nodes based on the current node information;

[0018] The strong consensus node substitutes the current individual coverage of all drone nodes into the fitness function to obtain the current fitness of all drone nodes.

[0019] In one or more embodiments, the method for calculating the historical optimal fitness includes:

[0020] The strong consensus node substitutes the individual optimal coverage rate of the node into the fitness function to obtain the historical optimal fitness of the node.

[0021] In one or more embodiments, the strong consensus node obtains the optimal position of the target node based on the current node information of the target node, the current fitness of all drone nodes, the historical optimal fitness of the target node and the target learning node, the individual optimal position of the target node and the group optimal position, including:

[0022] Based on the current fitness of all drone nodes and the historical optimal fitness of the target node, a self-learning factor of the target node is obtained;

[0023] Based on the self-learning factor, the individual optimal position and the current position of the target node, a self-position weight of the target node is obtained;

[0024] Based on the current fitness of all drone nodes, a social learning factor of the target node is obtained;

[0025] Based on the social learning factor, the optimal group position and the current position of the target node, a group position weight of the target node is obtained;

[0026] Based on the historical optimal fitness of the target node and the target learning node, obtaining a mutual learning factor of the target node;

[0027] Obtaining a mutual learning position weight of the target node based on the mutual learning factor of the target node, the current position, and the individual optimal position of the target learning node;

[0028] Based on the current position and speed of the target node, the self-position weight, the group position weight and the mutual learning position weight, the optimal position of the target node is obtained.

[0029] In one or more implementations, the calculation formula of the self-learning factor of the target node is as follows:

[0030] In the formula, is the historical optimal fitness of the target node, is the current fitness of the node, is the initial self-learning factor;

[0031] The calculation formula of the social learning factor of the target node is as follows:

[0032] In the formula, is the current fitness of the node, is the initial social learning factor, q is the convergence factor;

[0033] The calculation formula of the mutual learning factor of the target node is as follows:

[0034] In the formula, pfit k is the historical optimal fitness of the target learning node, is the historical optimal fitness of the target node.

[0035] In one or more implementations, the calculation formula for the optimal position of the target node is as follows:

[0036]

[0037] In the formula, is the velocity vector of the jth particle at the k+1th iteration, and is the updated velocity representation; represents the current speed of the jth particle in the kth iteration; rand(0,1) is a random number between 0 and 1; is the position of the target node at the k+1th iteration, that is, the optimal position of the target node; is the current position of the target node;

[0038] w k is the inertia weight factor, w k The update formula is as follows:

[0039]

[0040] In the formula, w max , w min are the maximum and minimum values ​​of the inertia weight, T is the maximum number of iterations, and k is the current number of iterations.

[0041] To achieve the above-mentioned purpose, the second aspect of the present application provides an adaptive smart contract device for a drone network, comprising:

[0042] A quantity monitoring module, used for the drone node to continuously monitor the global node table and determine whether the number of drone nodes has decreased. The global node table includes information of all drone nodes in the drone network;

[0043] A current information acquisition module, used for obtaining current node information for a strong consensus node when the number of drone nodes decreases. The strong consensus node is the drone node with the highest credibility in the drone network. The current node information includes the current position and speed of all drone nodes in the drone network.

[0044] A historical information acquisition module, used for the strong consensus node to obtain individual historical optimal data and group historical optimal data of the target node and the target learning node, wherein the individual historical optimal data includes the individual optimal position and individual optimal coverage of the node when the node has the highest coverage rate of the sub-monitoring area, and the group historical optimal data includes the group optimal position and group optimal coverage of the node when the drone network has the highest coverage rate of the total monitoring area;

[0045] A calculation module, configured for the strong consensus node to calculate the optimal position of the target node based on the current node information, the individual historical optimal data of the target node and the target learning node, and the group historical optimal data;

[0046] An instruction sending module is used for the strong consensus node to send a scheduling instruction to the target node based on the optimal position of the target node.

[0047] To achieve the above-mentioned purpose, the third aspect of the present application provides an electronic device, including:

[0048] at least one processor; and

[0049] A memory storing instructions, which, when executed by the at least one processor, enables the at least one processor to execute the adaptive smart contract method as described in any of the above embodiments.

[0050] To achieve the above-mentioned objectives, the fourth aspect of the present application provides a machine-readable storage medium, which stores executable instructions, and when the instructions are executed, the machine executes the adaptive smart contract method as described in any of the above-mentioned embodiments.

[0051] Different from the prior art, the beneficial effects of this application are:

[0052] When the number of drone nodes decreases, the present application obtains the current node information and the historical data of the nodes, calculates the self-learning factor, social learning factor and mutual learning factor of the nodes, obtains three position weights based on the above three factors, updates the optimal position of the node based on the three position weights, and sends scheduling instructions based on the optimal position, so that when the number of nodes decreases, the drone network topology structure can be quickly adjusted and optimized, ensuring the collaborative work of the drone network and achieving maximum coverage of the monitoring area. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art description are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0054] Figure 1 It is a structural diagram of an implementation method of an adaptive smart contract method for a drone network of the present application;

[0055] Figure 2 yes Figure 1 A schematic diagram of a flow chart of an implementation method corresponding to S400;

[0056] Figure 3 yes Figure 2 A schematic diagram of a flow chart of an implementation method corresponding to S403;

[0057] Figure 4 This is a comparison chart of the average coverage of the four algorithms in the effect example of this application;

[0058] Figure 5 It is a structural diagram of an implementation scheme of an adaptive smart contract device for a drone network of the present application;

[0059] Figure 6 It is a schematic structural diagram of an embodiment of an electronic device of the present application. DETAILED DESCRIPTION

[0060] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of this application.

[0061] In a real battlefield environment, drone networks are easily targeted by malicious attacks. Attackers may cause drone nodes to malfunction by physically destroying them, or gain control of drone nodes by interfering with communications. At this point, the collaborative work of drone networks will inevitably be problematic. However, the static topology used in traditional drone networks is not flexible enough to cope with such threats and meet the needs of subsequent battlefield environments. Therefore, in order to protect the overall security of drone networks, it is crucial to study a strategy for dynamically optimizing the topology of drone networks.

[0062] In order to solve the problem that drone network nodes cannot continue to work normally after being attacked or failing, the present application provides a method for dynamically optimizing the drone network topology structure through an adaptive smart contract. When the method is attacked and the number of normal nodes changes, it can realize autonomous adjustment and optimization of the drone network topology structure, thereby maximizing the coverage and communication efficiency.

[0063] Specifically, see Figure 1 , Figure 1 It is a structural diagram of an implementation method of an adaptive smart contract method for a drone network of the present application.

[0064] like Figure 1 As shown, the method includes:

[0065] S100, the drone node continuously monitors the global node table and determines whether the number of drone nodes decreases.

[0066] This includes information about all drone nodes in the drone network.

[0067] During the mission execution phase of the drone network, drone nodes can continuously monitor the global node table. In the drone blockchain, the global node table can be published to all blocks as new blocks are generated, thereby achieving global updates in the drone network.

[0068] Since the credibility of drone nodes is dynamically adjusted, when the credibility of a drone is less than the threshold, the drone will be removed from the drone network. Therefore, the number of nodes in the drone network is also dynamically adjusted to exclude untrustworthy drones from the mission.

[0069] By continuously monitoring the global node table, it is possible to determine whether the number of drone nodes is decreasing, so that when the number of nodes is reduced, the drone network topology structure can be quickly adjusted and optimized to ensure the collaborative work of the drone network.

[0070] If the number of drone nodes is reduced, it also includes:

[0071] S200, the strong consensus node obtains the current node information.

[0072] Among them, the strong consensus node can be the drone node with the highest credibility in the drone network. It can be elected based on the credibility ranking in each round of consensus, or it can be randomly designated in the initial stage.

[0073] The current node information includes the current position and speed of all drone nodes in the drone network.

[0074] S300, the strong consensus node obtains the individual historical optimal data and the group historical optimal data of the target node and the target learning node.

[0075] Among them, the individual historical optimal data includes the individual optimal position and individual optimal coverage of the node when the node has the highest coverage rate of the sub-monitoring area; the group historical optimal data includes the group optimal position and group optimal coverage of the node when the drone network has the highest coverage rate of the total monitoring area.

[0076] The coverage rate can be calculated by gridding the monitoring area and calculating the grid covered by each drone node.

[0077] Specifically, for any grid s in the monitoring area j , node z i Probability of coverage:

[0078]

[0079] Among them, d(z i ,s j ) is the distance between the point and the grid, so the probability that the grid point is covered by all sensor nodes is:

[0080] The coverage rate of the monitoring area is defined as the ratio of the coverage area of ​​the drone node set to the area of ​​the monitoring area, as shown in the following formula:

[0081] It is understandable that the individual optimal position and group optimal position of each node are not necessarily the same. When the coverage rate of the sub-monitoring area for which the node is responsible is the highest, the coverage rate of the entire drone network for the total monitoring area is not necessarily the highest; and vice versa.

[0082] S400, the strong consensus node calculates the optimal position of the target node based on the current node information, the individual historical optimal data of the target node and the target learning node, and the group historical optimal data.

[0083] The target node updates its position by making it learn the optimal position of the individual and the optimal position of the group, which includes both self-learning and social learning.

[0084] At the same time, in order to avoid the problem of drone nodes falling into local optimality, a mutual learning mechanism is introduced, that is, updating the position by learning the target learning node.

[0085] Specifically, see Figure 2 , Figure 2 yes Figure 1 A flow chart of an implementation method corresponding to S400 in FIG.

[0086] like Figure 2 As shown, the calculation method of the optimal position of the target node includes:

[0087] S401. The strong consensus node calculates the current fitness of all drone nodes based on the current node information and fitness function.

[0088] The fitness function is used to characterize the coverage of the node, and it can be configured as any function in which the fitness is proportional to the coverage, and is obtained by default.

[0089] Exemplarily, the fitness function can be Where a can be a positive correlation parameter, so that the higher the coverage, the higher the fitness of the node.

[0090] By calculating the individual coverage rate of the node in the current node information, that is, the coverage rate of the sub-monitoring area that the node is responsible for, and substituting the individual coverage rate of the node into the fitness function, the current fitness of the node can be obtained.

[0091] S402. The strong consensus node calculates the historical optimal fitness of the target node and the target learning node based on the individual optimal coverage and fitness function of the target node and the target learning node.

[0092] Furthermore, by substituting the individual optimal coverage of the target node and the target learning node into the fitness function, the historical optimal fitness of the target node can be calculated: And the historical optimal fitness pfit of the target learning node k .

[0093] S403. The strong consensus node obtains the optimal position of the target node based on the current node information of the target node, the current fitness of all drone nodes, the historical optimal fitness of the target node and the target learning node, the individual optimal position of the target node and the group optimal position.

[0094] Specifically, based on the current fitness and historical optimal fitness of the target node, the self-learning factor of the target node can be obtained. When the historical optimal fitness value of the target node is higher, it means that the node has achieved better results in past searches. Therefore, the node needs to pay more attention to its own experience and tend to maintain its own historical optimal position. Its self-learning factor can also be higher.

[0095] Accordingly, based on the current fitness of all drone nodes, the social learning factor of the node can be obtained, which represents the degree to which the node tends to learn the optimal position of its group.

[0096] In addition, based on the historical optimal fitness of the target node and the target learning node, the mutual learning factor of the target node can be obtained. The mutual learning factor represents the degree to which the target node learns the positions of other nodes. When the optimal fitness of the target learning node is greater than the historical optimal fitness of the target node, the target node should be moved closer to the target learning node to improve the mutual learning ability of the target node. Otherwise, it will move in the opposite direction to the target learning node, thereby avoiding subsequent resource overhead.

[0097] The specific calculation method is described in detail below. Figure 3 , Figure 3 yes Figure 2 A flow chart of an implementation method corresponding to S403.

[0098] like Figure 3 As shown, the calculation method of the optimal position of the target node may include:

[0099] S4031. Based on the current fitness of all drone nodes and the historical optimal fitness of the target node, the self-learning factor of the target node is obtained.

[0100] Among them, the self-learning factor Represents the degree to which the target node tends to maintain its own individual optimal position. The calculation formula can be as follows:

[0101] In the formula, is the historical optimal fitness of the target node, is the current fitness of the node, is the initial self-learning factor.

[0102] Understandably, when The larger the self-learning factor The larger it is, the more the target node tends to maintain its historical optimal position.

[0103] S4032. Obtain a self-position weight of the target node based on the self-learning factor, the individual optimal position and the current position of the target node.

[0104] Specifically, the distance between the individual optimal position and the current position of the target node can be calculated, and based on the self-learning factor, a quantized self-position weight can be obtained.

[0105] Exemplarily, the calculation formula of the target node's self-position weight can be as follows:

[0106]

[0107] In the formula, is the individual optimal position of the target node, is the current position of the target node, and rand(0,1) is a random number between 0 and 1.

[0108] S4033. Based on the current fitness of all drone nodes, obtain the social learning factor of the target node.

[0109] Among them, social learning factors Represents the degree to which the target node tends to maintain its own optimal position in the group. The calculation formula can be as follows:

[0110] In the formula, is the current fitness of the node, is the current fitness of the target node, is the initial social learning factor, q is the convergence factor used to speed up the global convergence speed, which can be a constant of 2, 3, 4, etc.

[0111] S4034. Based on the social learning factor, the optimal position of the group and the current position of the target node, obtain the group position weight of the target node.

[0112] Specifically, the distance between the optimal group position and the current position of the target node can be calculated, and based on the social learning factor, the quantized group position weight can be obtained.

[0113] Exemplarily, the calculation formula of the group position weight of the target node can be as follows:

[0114]

[0115] In the formula, is the optimal position of the target node. is the current position of the target node, and rand(0,1) is a random number between 0 and 1.

[0116] S4035. Based on the historical optimal fitness of the target node and the target learning node, obtain the mutual learning factor of the target node.

[0117] Among them, the mutual learning factor represents the degree to which the target node tends to learn the individual optimal position of the target learning node, and the calculation formula can be as follows:

[0118] In the formula, pfit k is the historical optimal fitness of the target learning node, is the historical optimal fitness of the target node.

[0119] S4036. Based on the mutual learning factor of the target node, the current position and the individual optimal position of the target learning node, obtain the mutual learning position weight of the target node.

[0120] Specifically, the distance between the individual optimal position of the target learning node and the current position of the target node may be calculated, and based on the mutual learning factor, a quantized mutual learning position weight may be obtained.

[0121] Exemplarily, the calculation formula of mutual learning position weight can be as follows:

[0122]

[0123] Where, T k is the individual optimal position of the target learning node, is the current position of the target node, and rand(0,1) is a random number between 0 and 1.

[0124] S4037. Based on the current position and speed of the target node, the self-position weight, the group position weight and the mutual learning position weight, the optimal position of the target node is obtained.

[0125] By correcting the current position and speed of the target node using the self-position weight, group position weight, and mutual learning position weight obtained through the above steps, the optimal position of the target node can be obtained.

[0126] Specifically, the calculation formula for the optimal position of the target node can be as follows:

[0127]

[0128] In the formula, is the velocity vector of the jth particle at the k+1th iteration, and is the updated velocity representation; represents the current speed of the jth particle in the kth iteration; rand(0,1) is a random number between 0 and 1; is the position of the target node at the k+1th iteration, that is, the optimal position of the target node; is the current position of the target node.

[0129] w k is the inertia weight factor, w k The update formula is as follows:

[0130]

[0131] In the formula, w max , w min are the maximum and minimum values ​​of the inertia weight, T is the maximum number of iterations, and k is the current number of iterations.

[0132] It can be understood that the optimal position of the above target node is constantly changing. In each iteration, the individual historical optimal data and the group historical optimal data of each node may change. When the individual coverage rate of the node is greater than the historical maximum individual coverage rate in each iteration, the individual coverage rate will be used as the new individual optimal coverage rate; correspondingly, when the group coverage rate of the drone network is greater than the historical maximum group coverage rate in each iteration, the group coverage rate will be used as the new group coverage rate.

[0133] Correspondingly, the inertia weight factor w k It will also be updated continuously until the maximum number of iterations T is reached. When the maximum number of iterations T is reached, the optimal position of the final target node will be output.

[0134] S500. The strong consensus node sends a scheduling instruction to the target node based on the optimal position of the target node.

[0135] Based on the obtained optimal position of the target node, the strong consensus node can send a scheduling instruction to the target node.

[0136] Specifically, for each node in the drone network, the strong consensus node can publish the updated target position of each node to the drone network through the newly generated block, so that each node moves to the updated target position, thereby forming a new topological structure, ensuring the synergy of each drone node in the drone network and achieving maximum coverage of the monitoring area.

[0137] The effect of the technical solution of this application is verified below with reference to specific effect examples.

[0138] Effect example:

[0139] Different algorithms are put into the blockchain of the drone network in the form of smart contracts, and simulation experiments are carried out using the following data as the benchmark parameters of the algorithm.

[0140]

[0141] This effect example compares the smart contract DPSO algorithm provided in this application with the conventional PSO algorithm, artificial fish swarm algorithm, and MOEA / P algorithm to simulate the topology optimization work after the drone node is attacked. The higher the coverage after optimization, the more it can meet the task requirements in the actual environment, thereby illustrating that the drone network is more robust.

[0142] The experiment sets different initial numbers of UAV nodes (the range is set to 10, 15, 20, 25) and randomly selects 2 faulty nodes from the entire UAV network to obtain Figure 4 , Figure 4 This is a comparison chart of the average coverage of the four algorithms in the effect example of this application.

[0143] like Figure 4 As shown in the figure, the average coverage of the basic PSO algorithm and the artificial fish swarm algorithm when the number of nodes is small is lower than that of the other two algorithms, which are 26.33% and 27.10% respectively; as the number of nodes increases, the average coverage of the artificial fish swarm algorithm also increases accordingly, and exceeds the MOEA / P algorithm; the average coverage of the DPSO algorithm of the present application is always at the highest level.

[0144] The experiment shows that the algorithm of this application not only has a higher coverage rate than the basic PSO algorithm, but also works better than other optimization algorithms in the experiment of maintaining the integrity of the drone network. It proves that the algorithm of this application can provide strong robustness for the blockchain-based drone network and improve the reliability of the drone network.

[0145] This application also provides an adaptive smart contract device for drone networks, see Figure 5 , Figure 5 It is a structural diagram of an implementation scheme of an adaptive smart contract device for a drone network of the present application.

[0146] like Figure 5 As shown, the adaptive smart contract device includes a quantity monitoring module 21, a current information acquisition module 22, a historical information acquisition module 23, a calculation module 24 and an instruction sending module 25.

[0147] Among them, the quantity monitoring module 21 is used for the drone node to continuously monitor the global node table and determine whether the number of drone nodes is reduced. The global node table includes information of all drone nodes in the drone network;

[0148] The current information acquisition module 22 is used to provide the strong consensus node with the current node information when the number of drone nodes decreases. The strong consensus node is the drone node with the highest credibility in the drone network. The current node information includes the current position and speed of all drone nodes in the drone network.

[0149] The historical information acquisition module 23 is used for the strong consensus node to obtain the individual historical optimal data and the group historical optimal data of the target node and the target learning node. The individual historical optimal data includes the individual optimal position and the individual optimal coverage of the node when the coverage rate of the node to the sub-monitoring area is the highest. The group historical optimal data includes the group optimal position and the group optimal coverage of the node when the coverage rate of the drone network to the total monitoring area is the highest;

[0150] The calculation module 24 is used for the strong consensus node to calculate the optimal position of the target node based on the current node information, the individual historical optimal data of the target node and the target learning node, and the group historical optimal data;

[0151] The instruction sending module 25 is used for the strong consensus node to send a scheduling instruction to the target node based on the optimal position of the target node.

[0152] As above Figures 1 to 4 , the adaptive smart contract method of the drone network according to the embodiment of this specification is described. The details mentioned in the above description of the method embodiment are also applicable to the adaptive smart contract device of the drone network in the embodiment of this specification. The above adaptive smart contract device of the drone network can be implemented by hardware, or by software, or a combination of hardware and software.

[0153] This application also provides an electronic device, see Figure 6 , Figure 6 It is a schematic structural diagram of an embodiment of an electronic device of the present application.

[0154] like Figure 6 As shown, the electronic device 30 may include at least one processor 31, a memory 32 (e.g., a non-volatile memory), a memory 33, and a communication interface 34, and the at least one processor 31, the memory 32, the memory 33, and the communication interface 34 are connected together via a bus 35. At least one processor 31 executes at least one computer-readable instruction stored or encoded in the memory 32.

[0155] It should be understood that the computer executable instructions stored in the memory 32, when executed, cause at least one processor 31 to perform the above combined operations in various embodiments of the present specification. Figure 1-Figure 4 Describes the various operations and functions.

[0156] In the embodiments of the present specification, the electronic device 30 may include, but is not limited to, personal computers, server computers, workstations, desktop computers, laptop computers, notebook computers, mobile electronic devices, smart phones, tablet computers, cellular phones, personal digital assistants (PDAs), handheld devices, messaging devices, wearable electronic devices, consumer electronic devices, and the like.

[0157] According to one embodiment, a program product such as a machine-readable medium is provided. The machine-readable medium may have instructions (i.e., the above-mentioned elements implemented in the form of software), which, when executed by a machine, causes the machine to perform the above-mentioned combination of various embodiments of this specification. Figure 1-Figure 4 Specifically, a system or device equipped with a readable storage medium may be provided, on which a software program code implementing the functions of any of the above-mentioned embodiments is stored, and a computer or processor of the system or device reads and executes the instructions stored in the readable storage medium.

[0158] In this case, the program code itself read from the machine-readable medium can realize the function of any one of the above embodiments, and thus the machine-readable code and the machine-readable storage medium storing the machine-readable code constitute part of this specification.

[0159] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or a cloud via a communication network.

[0160] Those skilled in the art should understand that the various embodiments disclosed above can be modified and altered in various ways without departing from the essence of the invention. Therefore, the protection scope of this specification should be defined by the appended claims.

[0161] It should be noted that not all steps and units in the above-mentioned processes and system structure diagrams are necessary, and some steps or units can be ignored according to actual needs. The execution order of each step is not fixed and can be determined as needed. The device structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some units may be implemented by the same physical client, or some units may be implemented by multiple physical clients, or some components in multiple independent devices may be implemented together.

[0162] In the above embodiments, the hardware unit or module can be realized by mechanical or electrical means. For example, a hardware unit, module or processor can include permanent dedicated circuit or logic (such as special processor, FPGA or ASIC) to complete the corresponding operation. The hardware unit or processor can also include programmable logic or circuit (such as general-purpose processor or other programmable processor), which can be temporarily set by software to complete the corresponding operation. Specific implementation (mechanical method or dedicated permanent circuit or temporary circuit) can be determined based on cost and time consideration.

[0163] The specific embodiments described above in conjunction with the accompanying drawings describe exemplary embodiments, but do not represent all embodiments that can be implemented or fall within the scope of protection of the claims. The term "exemplary" used throughout this specification means "used as an example, instance or illustration" and does not mean "preferred" or "having advantages" over other embodiments. For the purpose of providing an understanding of the described technology, the specific embodiments include specific details. However, these technologies can be implemented without these specific details. In some instances, in order to avoid making the concepts of the described embodiments difficult to understand, well-known structures and devices are shown in block diagram form.

[0164] The above description of the present disclosure is provided to enable any person of ordinary skill in the art to implement or use the present disclosure. Various modifications to the present disclosure will be apparent to those of ordinary skill in the art, and the general principles corresponding to the present disclosure may be applied to other variations without departing from the scope of protection of the present disclosure. Therefore, the present disclosure is not limited to the examples and designs described herein, but is consistent with the widest range of principles and novel features disclosed herein.

Claims

1. An adaptive smart contract method for drone networks, characterized in that: include: The drone node continuously monitors the global node table and determines whether the number of drone nodes decreases. The global node table includes information of all drone nodes in the drone network. If the number of drone nodes decreases, the strong consensus node obtains the current node information, which is the drone node with the highest credibility in the drone network. The current node information includes the current position and speed of all drone nodes in the drone network. The strong consensus node obtains individual historical optimal data and group historical optimal data of the target node and the target learning node, wherein the individual historical optimal data includes the individual optimal position and individual optimal coverage of the node when the node has the highest coverage of the sub-monitoring area, and the group historical optimal data includes the group optimal position and group optimal coverage of the node when the drone network has the highest coverage of the total monitoring area; The strong consensus node calculates the optimal position of the target node based on the current node information, the individual historical optimal data of the target node and the target learning node, and the group historical optimal data; The strong consensus node sends a scheduling instruction to the target node based on the optimal position of the target node.

2. The adaptive smart contract method according to claim 1, characterized in that: The step of calculating the optimal position of the target node by the strong consensus node based on the current node information, the individual historical optimal data of the target node and the target learning node, and the group historical optimal data includes: The strong consensus node calculates the current fitness of all drone nodes based on the current node information and the fitness function; The strong consensus node calculates the historical optimal fitness of the target node and the target learning node based on the individual optimal coverage of the target node and the target learning node and the fitness function; The strong consensus node obtains the optimal position of the target node based on the current node information of the target node, the current fitness of all drone nodes, the historical optimal fitness of the target node and the target learning node, the individual optimal position of the target node and the group optimal position; The fitness function is a function in which the fitness of the node is positively correlated with the individual coverage rate.

3. The adaptive smart contract method according to claim 2, characterized in that: The step of calculating the current fitness of all drone nodes by the strong consensus node based on the current node information and the fitness function includes: The strong consensus node calculates the current individual coverage of all drone nodes based on the current node information; The strong consensus node substitutes the current individual coverage of all drone nodes into the fitness function to obtain the current fitness of all drone nodes.

4. The adaptive smart contract method according to claim 2, characterized in that: The method for calculating the historical optimal fitness includes: The strong consensus node substitutes the individual optimal coverage rate of the node into the fitness function to obtain the historical optimal fitness of the node.

5. The adaptive smart contract method according to claim 2, characterized in that: The strong consensus node obtains the optimal position of the target node based on the current node information of the target node, the current fitness of all drone nodes, the historical optimal fitness of the target node and the target learning node, the individual optimal position and the group optimal position of the target node, including: Based on the current fitness of all drone nodes and the historical optimal fitness of the target node, a self-learning factor of the target node is obtained; Based on the self-learning factor, the individual optimal position and the current position of the target node, a self-position weight of the target node is obtained; Based on the current fitness of all drone nodes, a social learning factor of the target node is obtained; Based on the social learning factor, the optimal group position and the current position of the target node, a group position weight of the target node is obtained; Based on the historical optimal fitness of the target node and the target learning node, obtaining a mutual learning factor of the target node; Obtaining a mutual learning position weight of the target node based on the mutual learning factor of the target node, the current position, and the individual optimal position of the target learning node; Based on the current position and speed of the target node, the self-position weight, the group position weight and the mutual learning position weight, the optimal position of the target node is obtained.

6. The adaptive smart contract method according to claim 5, characterized in that: The calculation formula of the self-learning factor of the target node is as follows: In the formula, is the historical optimal fitness of the target node, is the current fitness of the node, is the initial self-learning factor; The calculation formula of the social learning factor of the target node is as follows: In the formula, is the current fitness of the node, is the initial social learning factor, q is the convergence factor; The calculation formula of the mutual learning factor of the target node is as follows: In the formula, pfit k is the historical optimal fitness of the target learning node, is the historical optimal fitness of the target node.

7. The adaptive smart contract method according to claim 6, characterized in that: The calculation formula for the optimal position of the target node is as follows: In the formula, is the velocity vector of the jth particle at the k+1th iteration, and is the updated velocity representation; Indicates the current speed of the jth particle in the kth iteration; rank(0,1) is a random number between 0 and 1; is the position of the target node at the k+1th iteration, that is, the optimal position of the target node; is the current position of the target node; w k is the inertia weight factor, w k The update formula is as follows: In the formula, w max , w min are the maximum and minimum values ​​of the inertia weight, T is the maximum number of iterations, and k is the current number of iterations.

8. An adaptive smart contract device for a drone network, characterized in that: include: A quantity monitoring module, used for the drone node to continuously monitor the global node table and determine whether the number of drone nodes has decreased. The global node table includes information of all drone nodes in the drone network; A current information acquisition module, used for obtaining current node information for a strong consensus node when the number of drone nodes decreases. The strong consensus node is the drone node with the highest credibility in the drone network. The current node information includes the current position and speed of all drone nodes in the drone network. A historical information acquisition module, used for the strong consensus node to obtain individual historical optimal data and group historical optimal data of the target node and the target learning node, wherein the individual historical optimal data includes the individual optimal position and individual optimal coverage of the node when the node has the highest coverage rate of the sub-monitoring area, and the group historical optimal data includes the group optimal position and group optimal coverage of the node when the drone network has the highest coverage rate of the total monitoring area; A calculation module, configured for the strong consensus node to calculate the optimal position of the target node based on the current node information, the individual historical optimal data of the target node and the target learning node, and the group historical optimal data; An instruction sending module is used for the strong consensus node to send a scheduling instruction to the target node based on the optimal position of the target node.

9. An electronic device, comprising: at least one processor; as well as A memory storing instructions, which, when executed by the at least one processor, causes the at least one processor to execute the adaptive smart contract method as described in any one of claims 1 to 7.

10. A machine-readable storage medium storing executable instructions, which, when executed, cause the machine to execute the adaptive smart contract method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Optimizing method for wireless sensor network node laying oriented to area monitoring

    CN101383736A

  • UAV multi-coverage model and deployment method under power control

    CN108616302A

  • Method, device and storage medium for low-cost safe search of unmanned aerial vehicle group

    CN110825107A

  • Unmanned aerial vehicle deployment method for adaptively optimizing urban disaster area network coverage

    CN112929866A

  • Optimization method and device for communication network of aerial swarm

    WO2023010712A1

Cited By

  • Unmanned aerial vehicle ad hoc network synchronization method

    CN120812721A