[go: up one dir, main page]

CN111787592B - An Opportunistic Routing Implementation Method Based on Spectral Clustering and C4.5 Algorithm - Google Patents

An Opportunistic Routing Implementation Method Based on Spectral Clustering and C4.5 Algorithm Download PDF

Info

Publication number
CN111787592B
CN111787592B CN202010607907.XA CN202010607907A CN111787592B CN 111787592 B CN111787592 B CN 111787592B CN 202010607907 A CN202010607907 A CN 202010607907A CN 111787592 B CN111787592 B CN 111787592B
Authority
CN
China
Prior art keywords
node
community
nodes
message
algorithm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010607907.XA
Other languages
Chinese (zh)
Other versions
CN111787592A (en
Inventor
周军海
吴海涵
秦拯
张吉昕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan University
Original Assignee
Hunan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan University filed Critical Hunan University
Priority to CN202010607907.XA priority Critical patent/CN111787592B/en
Publication of CN111787592A publication Critical patent/CN111787592A/en
Application granted granted Critical
Publication of CN111787592B publication Critical patent/CN111787592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/04Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/04Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources
    • H04W40/10Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources based on available power or energy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • H04W40/14Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality based on stability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/248Connectivity information update

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明涉及一种基于谱聚类和C4.5算法的机会路由实现方法。其发明内容主要包括:(1)亲密度权重计算方法;(2)基于谱聚类的子社区划分方法;(3)基于C4.5算法的“信使节点”识别模型;(4)基于亲密社区和决策树算法的机会路由实现方法。通过谱聚类将节点社区化,当源节点与目的节点同社区时,基于简单的泛洪传递消息,提高消息传递效率。当源节点与目的节点不同社区时,通过决策树模型确定“信使节点”,利用“信使节点”充当媒介,将消息传递至目的社区,实现跨社区传递消息。

Figure 202010607907

The invention relates to a method for realizing opportunistic routing based on spectral clustering and C4.5 algorithm. The invention mainly includes: (1) a calculation method of intimacy weight; (2) a sub-community division method based on spectral clustering; (3) a "messenger node" identification model based on the C4.5 algorithm; (4) an intimate community-based identification model And the opportunistic routing implementation method of decision tree algorithm. The nodes are communityized through spectral clustering. When the source node and the destination node are in the same community, messages are transmitted based on simple flooding, which improves the efficiency of message transmission. When the source node and the destination node are in different communities, the "messenger node" is determined by the decision tree model, and the "messenger node" is used as a medium to transmit the message to the destination community to realize the cross-community transmission of the message.

Figure 202010607907

Description

一种基于谱聚类和C4.5算法的机会路由实现方法An Opportunistic Routing Implementation Method Based on Spectral Clustering and C4.5 Algorithm

技术领域technical field

本发明涉及机器学习领域和无线通信技术领域,一种基于谱聚类和C4.5算法的机会路由实现方法。The invention relates to the field of machine learning and wireless communication technology, and a method for implementing opportunistic routing based on spectral clustering and C4.5 algorithm.

背景技术Background technique

随着5G的兴起,无线通信技术的快速发展,越来越多小体积、低成本、具有短距离通信能力的移动终端设备得以大规模的普及。无线通信网络因其通信灵活、部署简单、成本低廉等特点被广泛应用到地下、水下、深空、山丘等各种极端的、具有挑战性的特殊环境中。但在这些应用中,由于节点移动、节点稀疏、射频关闭或障碍物造成信号衰减等多种原因都可能导致网络在大多数时候不能连通。在这种网络环境中,传统的MANET通信模式无法适用。而机会网络因其特殊的通信方式“存储-携带-转发”,可以有效地解决上述问题,但由于机会网络的拓扑动态变化,节点之间没有相对稳定的数据传输路径。因此,实现具有良好路由性能的路由协议是机会网络研究中最具挑战性的问题之一。With the rise of 5G and the rapid development of wireless communication technology, more and more small-sized, low-cost, and short-range communication mobile terminal devices have been popularized on a large scale. Wireless communication networks are widely used in various extreme and challenging special environments such as underground, underwater, deep space, and hills because of their flexible communication, simple deployment, and low cost. However, in these applications, the network may not be connected most of the time due to various reasons such as node movement, node sparseness, RF shutdown, or signal attenuation caused by obstacles. In this network environment, the traditional MANET communication mode cannot be applied. The opportunistic network can effectively solve the above problems because of its special communication method "store-carry-forward", but due to the dynamic change of the topology of the opportunistic network, there is no relatively stable data transmission path between nodes. Therefore, implementing a routing protocol with good routing performance is one of the most challenging problems in opportunistic network research.

为了克服机会网络中不可预测性和高移动性带来的问题,已提出了许多路由协议,这些协议试图利用节点自身的移动性来帮助进行路由,大多数都采用基于泛洪的方法,其中消息以有限的生存时间(TTL)在整个网络中传播。节点通过在洪泛期间将副本发送到其他节点来帮助消息到达其目的地。虽然洪泛提高了传递概率,但它需要高开销,会消耗许多节点能量。因此,对于有限能量的移动节点,简单的泛洪是不切实际的。To overcome the problems caused by unpredictability and high mobility in opportunistic networks, a number of routing protocols have been proposed that attempt to use the mobility of nodes themselves to help with routing, most of them employ flooding-based methods, where messages Propagated throughout the network with a limited time-to-live (TTL). Nodes help messages reach their destination by sending replicas to other nodes during flooding. Although flooding improves delivery probability, it requires high overhead and consumes a lot of node energy. Therefore, simple flooding is impractical for mobile nodes with limited energy.

随着人工智能的发展,机器学习算法在研究优化问题方面取得了很大的进步。因此可以考虑在机会网络领域中结合机器学习方法进行优化改进,自适应转发消息。目前谱聚类(spectral clustering,SC)是一种广泛使用的聚类算法,比起传统的K-Means算法,谱聚类对数据分布的适应性更强,对于处理稀疏数据的聚类很有效,同时聚类的计算量也小很多。C4.5算法是机器学习算法中的一个分类决策树算法,它是基于ID3算法进行改进后的一种重要算法,对于数据分类方面具有良好效果。因此本发明利用谱聚类划分的亲密社区,以及基于C4.5算法构造的“信使节点”识别模型来辅助机会网络中的消息转发。With the development of artificial intelligence, machine learning algorithms have made great progress in studying optimization problems. Therefore, it can be considered to optimize and improve by combining machine learning methods in the field of opportunistic networks, and forward messages adaptively. At present, spectral clustering (SC) is a widely used clustering algorithm. Compared with the traditional K-Means algorithm, spectral clustering has stronger adaptability to data distribution and is very effective for clustering sparse data. , and the computational complexity of clustering is also much smaller. The C4.5 algorithm is a classification decision tree algorithm in the machine learning algorithm. It is an important algorithm based on the ID3 algorithm and has a good effect on data classification. Therefore, the present invention utilizes the intimate community divided by spectral clustering and the "messenger node" identification model constructed based on the C4.5 algorithm to assist message forwarding in the opportunistic network.

发明内容SUMMARY OF THE INVENTION

本发明提出了一种基于谱聚类和C4.5算法的机会路由实现方法,主要包括四大内容:The present invention proposes an opportunistic routing implementation method based on spectral clustering and C4.5 algorithm, which mainly includes four major contents:

(1)亲密度权重计算方法;(1) Intimacy weight calculation method;

(2)基于谱聚类的子社区划分方法;(2) Sub-community division method based on spectral clustering;

(3)基于C4.5算法的“信使节点”识别模型;(3) "Messenger node" identification model based on C4.5 algorithm;

(4)基于亲密社区和决策树算法的机会路由实现方法。(4) Implementation method of opportunistic routing based on close community and decision tree algorithm.

具体内容如下:The details are as follows:

(1)亲密度权重计算方法。(1) Intimacy weight calculation method.

定义1节点间亲密度越高,则认为越容易进行通信。本发明将单位时间内,节点间平均间隔通信时间的倒数作为其亲密度。它的意义表示两节点等待下一次通信时间越短,说明它们越亲密。平均间隔通信时间通过以下公式计算:Definition 1 The higher the intimacy between nodes, the easier it is to communicate. In the present invention, the inverse of the average interval communication time between nodes in a unit time is taken as its intimacy. Its meaning indicates that the shorter the time two nodes wait for the next communication, the closer they are. The average interval communication time is calculated by the following formula:

Figure BDA0002561456730000021
Figure BDA0002561456730000021

其中Intervals(i,j)表示节点i与节点j之间的平均间隔通信时间,delay_time(i,j,n)表示节点i与节点j第n次间隔时长,count表示单位时间内节点i与节点j之间通信总次数。间隔时长等于本次开始通信时刻减去上次结束通信时刻。Where Intervals (i,j) represents the average interval communication time between node i and node j, delay_time (i,j,n) represents the nth time interval between node i and node j, and count represents the unit time between node i and node j The total number of communications between j. The interval duration is equal to the current start communication time minus the last communication end time.

节点间的亲密度可通过以下公式计算:The intimacy between nodes can be calculated by the following formula:

Figure BDA0002561456730000031
Figure BDA0002561456730000031

其中λ(i,j)表示节点i与节点j之间的亲密度。若单位时间内,节点间仅通信一次,则简单认为该节点对之间的亲密度为0。where λ (i,j) represents the intimacy between node i and node j. If there is only one communication between nodes in a unit time, it is simply considered that the intimacy between the pair of nodes is 0.

考虑到单位时间内节点通信频次的重要性,最终亲密度定义将综合考虑节点通信频次,具体公式如下:Considering the importance of node communication frequency per unit time, the final definition of intimacy will comprehensively consider the node communication frequency. The specific formula is as follows:

Intimacy(i,j)=count*λ(i,j) Intimacy (i,j) = count*λ (i,j)

其中Intimacy(i,j)表示节点i与节点j之间的最终亲密度。最后,按该公式计算节点间的亲密度,并以此作为其权重,构建一张无向有权通信图,以矩阵存储通信图信息,以便分析和挖掘节点间的社区特征等重要信息。where Intimacy (i,j) represents the final intimacy between node i and node j. Finally, calculate the intimacy between nodes according to this formula, and use it as its weight to construct an undirected and weighted communication graph, and store the communication graph information in a matrix, so as to analyze and mine important information such as community characteristics between nodes.

(2)基于谱聚类的子社区划分方法。(2) Sub-community division method based on spectral clustering.

谱聚类(Spectral Clustering,SC)是一种基于图论的聚类方法,通过对所有节点组成的图进行切图,让切图后不同的子图间边权重和尽可能的低,而子图内的边权重和尽可能的高,从而达到聚类的目的。本发明采用谱聚类将通信图进行划分,构建多个子社区。具体步骤如下:Spectral Clustering (SC) is a clustering method based on graph theory. By cutting the graph composed of all nodes, the edge weights between different subgraphs after cutting the graph are as low as possible, while the subgraphs are cut. The edge weights in the graph are as high as possible, so as to achieve the purpose of clustering. The present invention uses spectral clustering to divide the communication graph to construct multiple sub-communities. Specific steps are as follows:

邻接矩阵构建:基于方法(1)中得到的通信图,获取图中边的权重信息构建邻接矩阵W。Adjacency matrix construction: Based on the communication graph obtained in method (1), the weight information of the edges in the graph is obtained to construct an adjacency matrix W.

度矩阵构建:对于图中的任意一个点vi,它的度di定义为和它相连的所有边的权重之和,即Degree matrix construction: for any point v i in the graph, its degree d i is defined as the sum of the weights of all edges connected to it, namely

Figure BDA0002561456730000032
Figure BDA0002561456730000032

基于已构建的邻接矩阵,利用每个点的度,得到一个n维的度矩阵D,它是一个对角矩阵,只有主对角线有值,对应第i行的第i个点的度数。Based on the constructed adjacency matrix, use the degree of each point to obtain an n-dimensional degree matrix D, which is a diagonal matrix, only the main diagonal has a value, corresponding to the degree of the i-th point in the i-th row.

计算并归一化拉普拉斯矩阵:拉普拉斯矩阵的定义公式如下:Calculate and normalize the Laplacian matrix: The definition formula of the Laplacian matrix is as follows:

L=D-WL=D-W

归一化拉普拉斯矩阵可通过以下公式计算:The normalized Laplacian matrix can be calculated by the following formula:

Figure BDA0002561456730000041
Figure BDA0002561456730000041

计算归一化拉普拉斯矩阵Q的k1个特征值所各自对应的特征向量f:该步骤巧妙地将切图问题转换为拉普拉斯矩阵特征值问题,将离散的聚类问题,松弛为连续的特征向量,最小的系列特征向量对应着图最优的系列划分方法。Calculate the eigenvectors f corresponding to each of the k 1 eigenvalues of the normalized Laplacian matrix Q: This step cleverly converts the graph cutting problem into a Laplacian matrix eigenvalue problem, and transforms the discrete clustering problem into The relaxation is a continuous eigenvector, and the smallest series eigenvector corresponds to the optimal series partitioning method of the graph.

最后将各自对应的特征向量f组成的矩阵按行标准化,组成n×k1维的特征矩阵F。对F中的每一行作为一个k1维的样本,共n个样本,用输入的聚类方法进行聚类,聚类维数为k2。得到簇

Figure BDA0002561456730000042
构建多个子社区。Finally, the matrix composed of the corresponding eigenvectors f is normalized by row to form an n×k 1 -dimensional eigenmatrix F. Take each row in F as a k 1 -dimensional sample, with a total of n samples, and perform clustering with the input clustering method, and the clustering dimension is k 2 . get cluster
Figure BDA0002561456730000042
Build multiple sub-communities.

(3)基于C4.5算法的“信使节点”识别模型。(3) "Messenger node" identification model based on C4.5 algorithm.

由于机会网络中,处于同一社区中的节点往往会经常“见面”,便于消息的转发。当转发消息给某节点时,可通过将消息转发给该节点所处社区中的其他节点,其他节点在子社区内进行泛洪,可提高消息传递效率,将消息快速传递给目的节点。方法(2)中得到多个子社区后,若源节点与目的节点处于同一子社区中,只需简单地在该社区中进行泛洪,就能大概率的将消息成功传递至目的节点。若源节点与目的节点不在同一社区中,需要跨社区传递消息时,需要寻找一些游离于多个子社区中的“信使节点”。因此通过获取节点的一些属性特征,采用C4.5算法构造一个可以识别出“信使节点”的模型,利用该模型确定“信使节点”。具体步骤如下:In an opportunistic network, nodes in the same community often "meet" to facilitate message forwarding. When a message is forwarded to a node, the message can be forwarded to other nodes in the community where the node is located, and other nodes can be flooded in the sub-community, which can improve the efficiency of message delivery and quickly deliver the message to the destination node. After obtaining multiple sub-communities in method (2), if the source node and the destination node are in the same sub-community, simply flooding in the community can successfully deliver the message to the destination node with high probability. If the source node and the destination node are not in the same community and need to transmit messages across communities, it is necessary to find some "messenger nodes" that are separated from multiple sub-communities. Therefore, by obtaining some attribute features of the node, the C4.5 algorithm is used to construct a model that can identify the "messenger node", and the model is used to determine the "messenger node". Specific steps are as follows:

特征选择:在机会网络中,以下属性特征对于确定“信使节点”往往很有意义。Feature selection: In opportunistic networks, the following attribute features are often meaningful for determining "messenger nodes".

1)节点活跃度:表示节点的活动能力。通过一段时间内,平均邻居节点数来衡量;1) Node Activity: Indicates the activity capability of a node. Measured by the average number of neighbor nodes over a period of time;

2)节点中心度:表示节点的重要程度。通过分析节点相遇历史记录得出与该节点相连的其他节点的类型数。类型数越多表示该节点中心点越大;2) Node Centrality: Indicates the importance of a node. The number of types of other nodes connected to this node is obtained by analyzing the node encounter history. The more types, the larger the center point of the node;

3)节点新近度:基于最近多长时间该节点与其他任意节点建立连接;3) Node recency: based on how long the node has recently established a connection with any other node;

4)节点可靠度:基于节点过去传递消息的成功次数与总次数的比值;4) Node reliability: based on the ratio of the number of successful messages delivered by the node to the total number of times in the past;

5)节点空闲缓冲空间:如果空闲缓存空间剩余不多或几乎没有剩余,则消息传递的机会比较小;5) Node free buffer space: If there is not much or almost no free buffer space left, the chance of message transmission is relatively small;

6)节点传输速度:不同节点的传输速度往往不一致,传输速度越快,表示节点传输能力越强;6) Node transmission speed: The transmission speed of different nodes is often inconsistent. The faster the transmission speed, the stronger the node transmission capability;

7)节点传输范围:传输范围越大,表示节点越容易发现目的节点;7) Node transmission range: the larger the transmission range, the easier it is for the node to find the destination node;

8)节点剩余能量:每个节点都会消耗能量,当能量消耗完时,节点会陷入死机状态。8) Remaining energy of nodes: each node will consume energy, and when the energy is exhausted, the node will fall into a state of crash.

决策树构造:决策树构造的关键问题是,选择哪个属性作为根节点、哪些属性作为内部节点以及何时停止并得到目标状态,即叶节点。本发明中采用C4.5算法,通过计算比较每个属性的信息增益比作为特征选择准则。具体步骤如下:Decision tree construction: The key issues in decision tree construction are which attribute to choose as the root node, which attributes to use as the internal node and when to stop and get the target state, the leaf node. In the present invention, the C4.5 algorithm is adopted, and the information gain ratio of each attribute is calculated and compared as the feature selection criterion. Specific steps are as follows:

训练数据准备:基于节点通信历史记录,计算并统计节点的各个属性特征,格式如下表。Training data preparation: Based on the node communication history, calculate and count the attributes of each node, the format is as follows.

编号Numbering 活跃度Activity 中心度Centrality 新近度recency 可靠度reliability 空闲缓存free cache 传输速度transfer speed 传输范围Transmission range 剩余能量residual energy 游离社区Free community 11 55 88 33 0.20.2 1010 2020 1010 5050 no nn 1010 88 55 0.60.6 5050 1515 1010 100100 Yes

信息熵计算:在信息论中,熵是随机变量不确定性的度量。熵越大,则随机变量的不确定性越大。可通过以下公式计算每个节点属性的信息熵:Information entropy calculation: In information theory, entropy is a measure of the uncertainty of a random variable. The greater the entropy, the greater the uncertainty of the random variable. The information entropy of each node attribute can be calculated by the following formula:

Figure BDA0002561456730000061
Figure BDA0002561456730000061

其中Entropy(t)表示信息熵,pk|t表示节点t为分类k的概率。where Entropy(t) represents the information entropy, and p k|t represents the probability that node t is classified as k.

信息增益计算:信息增益表示得知某属性特征X的信息而使得类Y信息的不确定性减少的程度,可通过以下公式计算:Information gain calculation: Information gain indicates the degree to which the uncertainty of class Y information is reduced by knowing the information of a certain attribute feature X, which can be calculated by the following formula:

Figure BDA0002561456730000062
Figure BDA0002561456730000062

Gain(N,i)表示信息增益,N是父亲节点,Nk是子节点,Gain(N,i)中的i作为N节点的属性选择。Gain(N,i) represents the information gain, N is the parent node, Nk is the child node, and i in Gain(N,i) is selected as the attribute of the N node.

信息增益比计算:ID3在计算的时候,倾向于选择取值多的属性。为了避免这个问题,C4.5进行了改进,采用信息增益比的方式来选择属性。具体公式如下:Information gain ratio calculation: ID3 tends to select attributes with more values when calculating. In order to avoid this problem, C4.5 has been improved to select attributes by means of information gain ratio. The specific formula is as follows:

Figure BDA0002561456730000063
Figure BDA0002561456730000063

Figure BDA0002561456730000064
Figure BDA0002561456730000064

最后,根据计算结果,选择信息增益比最大的属性作为根节点,根据该属性的不同取值建立子节点;对每个子节点使用相同的方式生成新的子节点,直到信息增益比很小或者没有特征可以选择为止,完成决策树构造。Finally, according to the calculation result, the attribute with the largest information gain ratio is selected as the root node, and the child nodes are established according to the different values of the attribute; new child nodes are generated in the same way for each child node until the information gain ratio is small or there is no Until the features can be selected, the decision tree construction is completed.

(4)基于亲密社区和决策树算法的机会路由实现方法。(4) Implementation method of opportunistic routing based on close community and decision tree algorithm.

基于亲密社区和决策树算法的机会路由实现方法可分为3个阶段,分别为社区划分阶段、决策树模型训练阶段和传输阶段。在社区划分阶段,基于方法(2)利用谱聚类将所有通信节点划分为多个子社区。在决策树模型训练阶段,基于方法(3)采用C4.5算法,采集训练数据,通过获取节点的一些属性特征,训练一个可以识别出“信使节点”决策树模型。在传输阶段,分为两种消息传递方式:同社区传递消息和跨社区传递消息。当源节点与目的节点同社区时,采用同社区传递消息方式:源节点遇到邻居节点,判断邻居节点是否与目的节点同社区,若是,复制转发消息,否则,节点继续移动。当源节点与目的节点不同社区时,采用跨社区传递消息方式:源节点遇到邻居节点,判断邻居节点是否与目的节点同社区,若是,复制转发消息,否则,基于训练好的决策树模型判断该节点是否为“信使节点”,若是,复制转发消息,否则,节点继续移动。The implementation method of opportunistic routing based on intimate community and decision tree algorithm can be divided into three stages, namely community division stage, decision tree model training stage and transmission stage. In the community division stage, all communication nodes are divided into multiple sub-communities based on method (2) using spectral clustering. In the decision tree model training stage, based on method (3), the C4.5 algorithm is used to collect training data, and by acquiring some attribute features of nodes, a decision tree model that can identify "messenger nodes" is trained. In the transmission phase, there are two message delivery methods: same-community message delivery and cross-community message delivery. When the source node and the destination node are in the same community, the same community message delivery method is adopted: the source node encounters a neighbor node and determines whether the neighbor node is in the same community as the destination node. If so, copy and forward the message, otherwise, the node continues to move. When the source node and the destination node are in different communities, the cross-community message transmission method is adopted: the source node encounters a neighbor node, and judges whether the neighbor node is in the same community as the destination node. If so, copy and forward the message, otherwise, judge based on the trained decision tree model. Whether the node is a "messenger node", if so, copy and forward the message, otherwise, the node continues to move.

附图说明Description of drawings

图1为本发明工作流程图。Fig. 1 is the working flow chart of the present invention.

具体实施方式Detailed ways

本发明是一种基于谱聚类和C4.5算法的机会路由实现方法,具体步骤如下:The present invention is an opportunity routing implementation method based on spectral clustering and C4.5 algorithm, and the specific steps are as follows:

步骤一:数据准备Step 1: Data Preparation

节点移动往往具有一定的规律性以及周期性,因此根据节点移动的周期性,采集特定时间范围内的节点通信历史记录,并基于亲密度函数计算节点间亲密度,以此作为其权重,构建一张无向有权通信图。Node movement often has certain regularity and periodicity. Therefore, according to the periodicity of node movement, the historical records of node communication within a specific time range are collected, and the intimacy between nodes is calculated based on the intimacy function, which is used as its weight to construct a Zhang Wuxiang has the right to communicate.

步骤二:子社区划分Step 2: Sub-community division

基于谱聚类方法,将无向有权通信图进行聚类划分,得到多个子社区。不同社区中的节点,采用不同标志进行标注,并定义表结构进行存储。Based on the spectral clustering method, the undirected weighted communication graph is clustered and divided to obtain multiple sub-communities. Nodes in different communities are marked with different signs, and a table structure is defined for storage.

步骤三:决策树模型构建Step 3: Building a decision tree model

对于跨社区传递消息时,往往需要“信使节点”作为媒介将消息传递至目的社区,因此基于C4.5算法,采集训练数据,通过获取节点的一些属性特征,训练一个可以识别出“信使节点”的决策树模型。When transmitting messages across communities, "messenger nodes" are often needed as a medium to transmit messages to the destination community. Therefore, based on the C4.5 algorithm, training data is collected, and some attribute characteristics of nodes are obtained to train a "messenger node" that can identify the "messenger node". decision tree model.

步骤四:消息传递Step 4: Messaging

当源节点与目的节点同社区时,采用同社区传递消息方式:源节点移动遇到邻居节点,判断邻居节点是否与目的节点同社区,若是,复制转发消息,否则,节点继续移动。当源节点与目的节点不同社区时,采用跨社区传递消息方式:源节点移动遇到邻居节点,判断邻居节点是否与目的节点同社区,若是,复制转发消息,否则,基于训练好的决策树模型判断该节点是否为“信使节点”,若是,复制转发消息,否则,节点继续移动。When the source node and the destination node are in the same community, the same community message delivery method is adopted: the source node moves and encounters a neighbor node, and judges whether the neighbor node is in the same community as the destination node. If so, copy and forward the message, otherwise, the node continues to move. When the source node and the destination node are in different communities, the cross-community message transmission method is adopted: the source node moves and encounters a neighbor node, and judges whether the neighbor node is in the same community as the destination node. If so, copy and forward the message, otherwise, based on the trained decision tree model Determine whether the node is a "messenger node", if so, copy and forward the message, otherwise, the node continues to move.

Claims (1)

1. An opportunistic routing implementation method based on spectral clustering and a C4.5 algorithm is characterized by comprising the following steps:
(1) an intimacy weight calculation method;
(2) a sub-community partitioning method based on spectral clustering;
(3) a messenger node identification model based on a C4.5 algorithm;
(4) an opportunistic routing implementation method based on a close community and a decision tree algorithm;
the intimacy weight calculation method (1) is characterized in that: because node communication often has certain regularity and social attributes, based on historical node communication records, the intimacy degree between nodes is calculated by using a newly defined intimacy degree function and is used as the weight of the intimacy degree function, and an undirected weighted communication graph is constructed so as to analyze and mine community characteristic information between the nodes;
the method for dividing the sub-communities based on the spectral clustering is characterized in that: because nodes in the same community often meet the ground in the opportunistic network and are convenient for message forwarding, a communication graph is divided into a plurality of subgraphs based on spectral clustering, a plurality of sub-communities are constructed, when a message is forwarded to a certain node, the message can be forwarded to other nodes in the community where the node is located, and the other nodes are copied and forwarded in the community, so that the message transmission efficiency can be improved, and the message can be quickly transmitted to a target node;
the characteristics of the (3) messenger node identification model based on the C4.5 algorithm are as follows: the message transmission of the nodes in the same community is rapid and reliable, and when the message is transmitted across communities, messenger nodes which are free in a plurality of sub-communities need to be searched, so that a model capable of identifying the messenger nodes is constructed by adopting a C4.5 algorithm by acquiring the characteristics of the activity, the centrality, the recency, the reliability, the free cache space, the transmission speed, the transmission range and the residual energy attribute of the nodes, and the messenger nodes are determined by utilizing the model;
the opportunistic routing implementation method based on the intimate community and the decision tree algorithm is characterized in that: based on the divided sub-communities and the trained decision tree model, when a source node and a destination node are in the same community, the message is copied and forwarded only in the sub-communities, when the source node and the destination node are in different community, the messenger node is identified by using the decision tree model, the message is transmitted to the destination community through the messenger node, and the node in the destination community copies and forwards the message and finally transmits the message to the destination node.
CN202010607907.XA 2020-06-30 2020-06-30 An Opportunistic Routing Implementation Method Based on Spectral Clustering and C4.5 Algorithm Active CN111787592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010607907.XA CN111787592B (en) 2020-06-30 2020-06-30 An Opportunistic Routing Implementation Method Based on Spectral Clustering and C4.5 Algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010607907.XA CN111787592B (en) 2020-06-30 2020-06-30 An Opportunistic Routing Implementation Method Based on Spectral Clustering and C4.5 Algorithm

Publications (2)

Publication Number Publication Date
CN111787592A CN111787592A (en) 2020-10-16
CN111787592B true CN111787592B (en) 2022-07-19

Family

ID=72759878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010607907.XA Active CN111787592B (en) 2020-06-30 2020-06-30 An Opportunistic Routing Implementation Method Based on Spectral Clustering and C4.5 Algorithm

Country Status (1)

Country Link
CN (1) CN111787592B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291827A (en) * 2020-10-29 2021-01-29 王程 Social attribute driven delay tolerant network route improvement algorithm

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071844A (en) * 2017-06-13 2017-08-18 湘潭大学 A kind of opportunistic network routing method divided based on spectral clustering community
CN108809709A (en) * 2018-06-06 2018-11-13 山东大学 It is a kind of based on the close nature community discovery method propagated with label of node
CN109492673A (en) * 2018-10-19 2019-03-19 南京理工大学 A kind of unbalanced data prediction technique based on spectral clustering sampling
CN109716346A (en) * 2016-07-18 2019-05-03 河谷生物组学有限责任公司 Distributed machines learning system, device and method
CN110493142A (en) * 2019-07-05 2019-11-22 南京邮电大学 Mobile applications Activity recognition method based on spectral clustering and random forests algorithm
CN111343690A (en) * 2020-03-01 2020-06-26 内蒙古科技大学 An opportunistic network routing method based on fine-grained social relations and community collaboration

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10242514B2 (en) * 2017-07-14 2019-03-26 Allstate Insurance Company Distributed data processing systems for processing remotely captured sensor data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109716346A (en) * 2016-07-18 2019-05-03 河谷生物组学有限责任公司 Distributed machines learning system, device and method
CN107071844A (en) * 2017-06-13 2017-08-18 湘潭大学 A kind of opportunistic network routing method divided based on spectral clustering community
CN108809709A (en) * 2018-06-06 2018-11-13 山东大学 It is a kind of based on the close nature community discovery method propagated with label of node
CN109492673A (en) * 2018-10-19 2019-03-19 南京理工大学 A kind of unbalanced data prediction technique based on spectral clustering sampling
CN110493142A (en) * 2019-07-05 2019-11-22 南京邮电大学 Mobile applications Activity recognition method based on spectral clustering and random forests algorithm
CN111343690A (en) * 2020-03-01 2020-06-26 内蒙古科技大学 An opportunistic network routing method based on fine-grained social relations and community collaboration

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SeScR: SDN-Enabled Spectral Clustering-Based Optimized Routing Using Deep Learning in VANET Environment;Laxmi Subedi等;《Proceedings of 2010 IEEE International Symposium on Circuits and Systems》;20100803;全文 *
认知无线车载自组织网络中的联合路由调度;张沪寅等;《计算机研究与发展》;20171115(第11期);全文 *

Also Published As

Publication number Publication date
CN111787592A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
Singh et al. [Retracted] Energy‐Efficient Clustering and Routing Algorithm Using Hybrid Fuzzy with Grey Wolf Optimization in Wireless Sensor Networks
CN110348526B (en) A device type identification method and device based on semi-supervised clustering algorithm
CN107071844A (en) A kind of opportunistic network routing method divided based on spectral clustering community
CN118133146B (en) An artificial intelligence-based method for identifying risk intrusions in the Internet of Things
CN104199884B (en) A kind of social networks point of observation choosing method preferential based on R coverage rates
Sharawi et al. WSN's energy-aware coverage preserving optimization model based on multi-objective bat algorithm
CN110809066A (en) IPv6 address generation model creation method, device and address generation method
Shahina et al. Clustering and data aggregation in wireless sensor networks using machine learning algorithms
Wang et al. A survey of compressive data gathering in WSNs for IoTs
CN111787592B (en) An Opportunistic Routing Implementation Method Based on Spectral Clustering and C4.5 Algorithm
CN110289980A (en) Method and system for predicting pocket switching network links using learning automata
Ebrahimi et al. A new meta-heuristic approach for efficient search in the Internet of Things
CN104703195B (en) A kind of mobile ad hoc network routing node behavior prediction method
Albalas et al. Detecting black hole attacks in MANET using relieff classification algorithm
Rani et al. A hybrid approach for the optimization of quality of service metrics of WSN
Verma et al. Neural based energy-efficient stable clustering for multilevel heterogeneous WSNs
CN110661566A (en) Unmanned aerial vehicle cluster networking method and system adopting depth map embedding
CN112256756B (en) An Influence Discovery Method Based on Ternary Association Graph and Knowledge Representation
CN107276837A (en) Data forwarding method and device based on context awareness
Razooqi et al. Enhanced Ant Colony Optimization for Routing in WSNs An Energy Aware Approach.
CN108990128B (en) Route design method based on mobile perception in mobile network
El-Sayed Performance evaluation of clustering EAMMH, LEACH SEP, TEEN protocols in WSN
Hada et al. Dynamic Cluster Head Selection in WSN
Chouhan et al. A survey on the applications of machine learning in wireless sensor networks
Zhao et al. Inference in wireless sensor networks based on information structure optimization

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant